私は初心者ですquickfixj
。IP とポートに接続するメッセージを受信するようにクライアントを準備しようとしています。QFJ のドキュメント/サポートを読んだ後、何もわかりません。クイックフィックス/J を使用してサーバーからメッセージを受信する完璧な方法はありますか? Connector インターフェイスで実装された以下のクラス。
SocketInitiator socketInitiator = new SocketInitiator(application,
fileStoreFactory, sessionSettings, logFactory,
messageFactory);
SessionID sessionId = socketInitiator.getSessions().get(0);
socketInitiator.start();
@Override
public void start() throws ConfigError, RuntimeError{
Logon logon = new Logon();
Header header = logon.getHeader();
header.setField(new BeginString("FIX.4.2")); // "FIXT.1.1"
logon.setField(new SenderSubID("pro"));
logon.setField(new RawData("pro"));
logon.setField(new SenderCompID("pro"));
logon.setField(new TargetCompID("TRAD"));
logon.set(new HeartBtInt(30));
logon.set(new ResetSeqNumFlag(true));
boolean sent = Session.sendToTarget(logon, sessionId);
System.out.println("Logon Message Sent : " + sent);
}