How can I hardcode the settings of the initiator and the acceptor, so that I don't need an external settings file?
This is what I've tried so far:
FIX::SessionSettings serverSettings;
FIX::Dictionary serverDictionary;
serverDictionary.setString("BeginString", "FIX.4.4");
serverDictionary.setString("UseDataDictionary", "Y");
serverDictionary.setString("DataDictionary", "../../../spec/FIX.4.4.xml");
serverDictionary.setString("SenderCompID", "SRVR");
serverDictionary.setString("TargetCompID", "CLNT");
serverDictionary.setString("SocketAcceptHost", "localhost");
serverDictionary.setLong("SocketAcceptPort", 2024);
FIX::SessionID serverSessionID;
serverSettings.set(serverSessionID, serverDictionary);
Server server; // Extends FIX::Application
FIX::FileStoreFactory serverStoreFactory("server/fileStore/");
FIX::FileLogFactory serverLogFactory("server/logs/");
FIX::SocketAcceptor acceptor(server, serverStoreFactory, serverSettings, serverLogFactory);
I think I'm on the right path but I get this error: Configuration failed: BeginString must be FIX.4.0 to FIX.4.4 or FIXT.1.1
Any ideas?