[Quickfix-developers] Cannot send a message to Quick Fix Acceptor
Brought to you by:
orenmnero
From: Saman M. <mar...@gm...> - 2008-11-24 10:27:48
|
Hi, I have created a quickfix acceptor in C++. This is my code std::string file= "Fix.xml"; try { FIX::SessionSettings settings( file ); FIX::FileStoreFactory storeFactory( settings ); FIX::ScreenLogFactory logFactory( true, true, true ); FIX::SocketInitiator acceptor( *this, storeFactory, settings,logFactory ); acceptor.start(); while(1) { FlushServerQueue(); ProcessQueue(); FIX::process_sleep(1); //usleep(100); } acceptor.stop(); } catch ( std::exception & e ) { std::cout << e.what() << std::endl; return ; } My fix Config Fix.xml is this =================================== [DEFAULT] ConnectionType=initiator ReconnectInterval=60 SenderCompID=TW SocketAcceptPort = 9020 SocketReuseAddress=N FileStorePath=/home/admin/work/exsim/logs FileLogPath=/home/admin/work/exsim/logs # session definition [SESSION] # inherit ConnectionType, ReconnectInterval and SenderCompID from default BeginString=FIX.4.1 TargetCompID=ARCA StartTime=12:30:00 EndTime=23:30:00 HeartBtInt=20 DataDictionary=FIX41.xml I want to create a FixServer on port 9020 . I think I have to mentioned that port as SocketAcceptPort = 9020. But I am unable to send a message to port 9020. I can't even telnet to that port. Could you please help me to sort out this problem. Thanks. Saman |