Re: [Quickfix-users] Session State
Brought to you by:
orenmnero
From: <or...@qu...> - 2010-03-04 23:05:27
|
Good question. At first they may appear identical, but they are really quite different. Think of onLogon and onLogout as confirmations. onLogon says that both sides have sent and confirmed logon messages. We have established a valid session and we are all ready to go. It means you are good to go. No, the onMessage call for a Logon is the callback for the Logon message, which could be the ingoing OR outgoing logout, depending on which callback it arrived from. This lets you view the internals of the message, but is not itself confirmation that a valid logon handshake has taken place. Maybe you sent out a Logon, but have not received one back. onLogout, again, means you are done for sure. And unlike Logons, this could happen without any Logout messages as all. The network may go down for instance. So in the end, onLogon and onLogout is what you should rely on to know if you are truly logged in or not. The messages are used in part to determine these states. --oren > -------- Original Message -------- > Subject: Re: [Quickfix-users] Session State > From: ka wone <ka...@gm...> > Date: Thu, March 04, 2010 2:21 pm > To: Kenny Stone <ks...@co...>, > qui...@li... > > > QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html<hr>Thanks Kenny for the quick answer. > > However I have an other question :). Are both: > public void onLogout(QuickFix.SessionID pSessionID) { } and public > override void onMessage(QuickFix42.Logout order, SessionID psessionID){ } > called? > What are the differences between these two methods? > Same reflexion with public override void onMessage(QuickFix42.Logon order, > SessionID psessionID){ } and public void onLogon(QuickFix.SessionID > pSessionID) { }. > > Thanks, > Kamel > > > 2010/3/3 Kenny Stone <ks...@co...> > > > QuickFIX Documentation: > > http://www.quickfixengine.org/quickfix/doc/html/index.html > > QuickFIX Support: http://www.quickfixengine.org/services.html > > > > > > onLogout <http://quickfixengine.org/quickfix/doc/html/application.html>() > > is called when there is a disconnect. > > > > > > *onLogout* notifies you when an FIX session is no longer online. This > > could happen during a normal logout exchange or because of a forced > > termination or a loss of network connection. > > > > > > -- > > Kenny Stone > > Connamara Systems, LLC > > > > > > On Wed, Mar 3, 2010 at 2:29 PM, ka wone <ka...@gm...> wrote: > > > >> QuickFIX Documentation: > >> http://www.quickfixengine.org/quickfix/doc/html/index.html > >> QuickFIX Support: http://www.quickfixengine.org/services.html > >> > >> > >> Hello, > >> > >> I would like to know the state of my session or, better, know when the > >> network is down through QuickFix. > >> Several solutions: > >> - Check if we receive at regular intervals the heartbeat messages > >> - Check if the socketInnitiator has its isLoggedOn property turned to on. > >> > >> However I would like to think there is a better way to achieve this. > >> Can anyone help me? > >> > >> Thanks, > >> Kamel > >> > >> > >> ------------------------------------------------------------------------------ > >> Download Intel® Parallel Studio Eval > >> Try the new software tools for yourself. Speed compiling, find bugs > >> proactively, and fine-tune applications for parallel performance. > >> See why Intel Parallel Studio got high marks during beta. > >> http://p.sf.net/sfu/intel-sw-dev > >> _______________________________________________ > >> Quickfix-users mailing list > >> Qui...@li... > >> https://lists.sourceforge.net/lists/listinfo/quickfix-users > >> > >> > > > > > > ------------------------------------------------------------------------------ > > Download Intel® Parallel Studio Eval > > Try the new software tools for yourself. Speed compiling, find bugs > > proactively, and fine-tune applications for parallel performance. > > See why Intel Parallel Studio got high marks during beta. > > http://p.sf.net/sfu/intel-sw-dev > > _______________________________________________ > > Quickfix-users mailing list > > Qui...@li... > > https://lists.sourceforge.net/lists/listinfo/quickfix-users > > > ><hr>------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev<hr>_______________________________________________ > Quickfix-users mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-users |