[Quickfix-users] Get socket level FIX::Session status information
Brought to you by:
orenmnero
From: Steven D. <ste...@ho...> - 2010-01-13 02:12:20
|
Hello, Is there a way to determine what is going on at a socket level i.e. connection was immidiately rejected, or connection was terminated? I'm looking to do something like an Application onEvent type setup ideally, or polling a list of sessions to check their socket level status. Here is the area I'm hopeing to build this into, am I on the right track working this through sessions or is there a totally different method? std::set<FIX::SessionID> sessions = settings.getSessions(); std::set<FIX::SessionID>::iterator i; for( i = sessions.begin(); i != sessions.end(); ++i ) { FIX::Session* session = FIX::Session::lookupSession( *i ); if ( session->isEnabled() ) { // example of session method call } std::cout << std::endl << *i << std::endl; } For background I have a buy side initiator Application type setup. Regards, Steven |