[Quickfix-developers] Implementing Logon/Logout
Brought to you by:
orenmnero
From: Alexander K. <ale...@un...> - 2008-07-29 16:59:04
|
Greetings, I'm using FIX 4.2 and C++. What's the right way to implement Logon and Logout? My code looks like: MyApplication application; FIX::SessionSettings settings( cfg_file ); FIX::FileStoreFactory storeFactory( settings ); FIX::FileLogFactory logFactory( settings ); FIX::SocketInitiator initiator( application, storeFactory, settings, logFactory ); initiator.start(); while(true){ // do something... if(order_condition) application.SendOrder(); // if(login_condition) application.Logon(); // if(logout_condition) application.Logout(); } initiator.stop(); It seems that initiator.start()/initiator.stop() automatically sends login/logout requests (I'm wondering because I can't find these methods in SocketInitiator.h header). I want to login/logout my FIX-Application manually. Is there a way to do that by implementing Logon/Logout methods in my application-class (if yes, how can I query it)? Thanks for help! -- | Alexander Köhn |