Re: [Quickfix-users] Get socket level FIX::Session status information
Brought to you by:
orenmnero
From: Steven D. <ste...@ho...> - 2010-01-13 02:26:26
|
I'm resending this to the list as plain text this time. Any help is appreciated. ________________________________ > From: ste...@ho... > To: qui...@li... > Subject: Get socket level FIX::Session status information > Date: Tue, 12 Jan 2010 21:12:12 -0500 > > > 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 sessions = settings.getSessions(); > std::set::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 |