[Quickfix-developers] Session logout() Vs. reset()
Brought to you by:
orenmnero
From: Radhika S. <Rad...@Pi...> - 2004-12-31 18:20:18
|
Hi, My client application calls logon() and logout() when I want to start and end a session. before I explain a little, my question is how is calling reset() different from logout(). logon for very first time is successful. isLoggedOn =3D true, sentLogon =3D true, isEnabled =3D true. After logging out and re-logging on,=20 isEnabled =3D true (so logon() does set m_enabled =3D true) sentLogon =3D false isLoggedOn =3D false. Here is the interesting behvavior -=20 if I use the session.reset() function, the problem described above does not occur. Looking into the code I see that all logon() and logoff() is doing is setting the m_enabled flag. reset() calls disconnect(). What does this mean? ie. what is happening differently when I call reset() as opposed to logout(). Also, when the session is started I issue a socketInitiator.stop() to stop the fix engine and restart with start(). I do not know if this has an effect on anything. Thanks in advance. Radhika |