Re: [Quickfix-developers] How to Logout
Brought to you by:
orenmnero
|
From: Oren M. <or...@qu...> - 2005-09-28 21:00:02
|
Just call the public logout() method on the Session class. --oren ----- Original Message -----=20 From: Ananth=20 To: qui...@li...=20 Sent: Wednesday, September 28, 2005 2:28 PM Subject: [Quickfix-developers] How to Logout QuickFIX Documentation: = http://www.quickfixengine.org/quickfix/doc/html/index.html QuickFIX = Support: http://www.quickfixengine.org/services.html=20 Hi, We are using QuickFix 4.2. In our architecture we have Server using = Acceptor and client using Initiator.. Now when client wants to end its session it has to send logout msg to = server. Which is refined way to do it.........? I have tried out like this ----- FIX::SessionID *pSessionID =3D new FIX::SessionID = (FIX::BeginString("FIX.4.2"), FIX::SenderCompID ( GetSenderCompID()), = FIX::TargetCompID( GetTargetCompID())); FIX::Session *pSession =3D FIX::Session::lookupSession( = *pSessionID); if (pSessionID !=3D NULL) { pSession->generateLogout("Logout by Phoenix User"); pSession->disconnect(); FIX::Session::removeSession(*pSession); } Is this correct way to do it....because i had made func = generateLogout() public from private in Session class. Could anyone throw some light on it=20 Thanks in Advance, Ananth=20 ------------------------------------------------------- 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 |