Re: [Quickfix-developers] How to check for dropped socket
Brought to you by:
orenmnero
|
From: Oren M. <or...@qu...> - 2005-06-23 19:44:49
|
Session::isLoggedOn will return true if that particular session is logged on. ThreadedSocketInitiator will return true if any of the sessions it is managing is logged on. So if your ThreadedSocketInitiator is managing 5 sessions, if any one is logged on it will return true, and will return false only if none of them is logged on. It is basically a for loop that calls Session::isLoggedOn for on all of the Session objects. --oren ----- Original Message ----- From: "Francis Gingras" <fr...@at...> To: <qui...@li...>; "'Oren Miller'" <or...@qu...> Sent: Thursday, June 23, 2005 2:39 PM Subject: RE: [Quickfix-developers] How to check for dropped socket > Oren, > > I work in C# and socket is of type QuickFix.ThreadedSocketInitiator. I use > socket.start() to initiate a session. > > So are Session::isLoggedOn and socket.isLoggedOn one and the same? > > Thanks, > > Francis > > -----Original Message----- > From: Oren Miller > Sent: Thursday, June 23, 2005 15:28 > To: Francis Gingras; qui...@li... > Subject: Re: [Quickfix-developers] How to check for dropped socket > > A session always exists, but it can be disabled if you do not wish for it > to > logon and process messages. Keep in mind these are FIX sessions, not > socket > sessions. They exist outside of the scope of a socket connection. > > Session::isLoggedOn indicates whether the sessions has sucesfully > exchanged > logon messages with the counterparty. I'm not sure what you are refering > to > with "socket.isLoggedOn()". > > --oren > > |