RE: [Quickfix-developers] How to Logout
Brought to you by:
orenmnero
|
From: Francis G. <fr...@at...> - 2005-10-02 20:17:09
|
Dale, initiator.Stop() (I use C#) does an orderly shutdown; logouts are sent to all sessions. I just tried with initiator.Logon/Logout instead of Start/Stop, but I get the same problem: the third logon attempt just dies. I'm careful to use the same static initiator object which is only created once but it makes no difference. I'm out of ideas on this one and the developers have not looked at my bug report since it was reported 11 weeks ago, there's even a sample app to duplicate the problem. Thanks, Francis _____ From: Dale Wilson [mailto:wil...@oc...] Sent: Friday, September 30, 2005 15:26 To: Francis Gingras Cc: qui...@li... Subject: Re: [Quickfix-developers] How to Logout Hi Francis.. Francis Gingras wrote: Hi Dale, I do the same thing except my logoff code is simply m_initiator->Stop(). Is there a reason you call stop on the Initator rather than logoff on the Session? Is the logoff message sent to the counterparty when you shut down that way? I wouldn't expect an orderly shutdown from a call to Initiator::stop(). It works twice and the third login consistently fails. Any idea why? I don't know why that happens, but I haven't tried Initiator::stop rather than Session::logoff() Dale See http://www.quickfixengine.org/bugtracker/bug.php?op=show <http://www.quickfixengine.org/bugtracker/bug.php?op=show&bugid=88&pos=8> &bugid=88&pos=8 Thanks, Francis _____ From: Dale Wilson [mailto:wil...@oc...] Sent: Thursday, September 29, 2005 11:43 To: ans...@sp... Cc: qui...@li... Subject: Re: [Quickfix-developers] How to Logout Hi Ananth To "re login" after you have logged out you should simply call pSession->login() The code you supplies attempts to re-initialize the library -- in particular the Initiator -- which will not work the way you expect it to. Dale Ananth wrote: QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html QuickFIX Support: http://www.quickfixengine.org/services.html Ananth ----- Original Message ----- From: Ananth <mailto:ans...@sp...> <ans...@sp...> To: 'Oren Miller' <mailto:or...@qu...> <or...@qu...> Sent: Thu Sep 29 3:22 Subject: Fwd: Re: [Quickfix-developers] How to Logout Hi, My client side code for login is .. FixLogin( string file) { application = new CCMEInitiatorApp; FIX::SessionSettings settings( file ); FIX::FileStoreFactory storeFactory( settings ); FIX::FileLogFactory logFactory( settings ); FIX::SocketInitiator initiator = new FIX::SocketInitiator( *application, storeFactory, settings, logFactory ); m_initiator->start(); application->run(file); } And my client side code for logout as u have mentioned is .. FixLogout() { FIX::SessionID *pSessionID = new FIX::SessionID (FIX::BeginString("FIX.4.2"), FIX::SenderCompID( GetSenderCompID()), FIX::TargetCompID( GetTargetCompID())); FIX::Session *pSession = FIX::Session::lookupSession( *pSessionID); if (pSessionID != NULL) { pSession->logout(); } } Once I clicked logout its logging me out, but I am unable to login again..by calling same FixLogin( string file) again. Am I doing mistake some where Can you please help me out. Thanks in Advance, Ananth On Wed Sep 28 14:59 , 'Oren Miller' <mailto:or...@qu...> <or...@qu...> sent: Just call the public logout() method on the Session class. ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ Quickfix-developers mailing list Qui...@li... https://lists.sourceforge.net/lists/listinfo/quickfix-developers -- ----------------------------------------------------- Dale Wilson, Senior Software Engineer Object Computing, Inc. (OCI) http://www.ociweb.com/ http://www.theaceorb.com/ ---------------------------------------------------- -- ----------------------------------------------------- Dale Wilson, Senior Software Engineer Object Computing, Inc. (OCI) http://www.ociweb.com/ http://www.theaceorb.com/ ---------------------------------------------------- |