[Quickfix-developers] How to Logout
Brought to you by:
orenmnero
|
From: Ananth <ans...@sp...> - 2005-09-28 19:28:56
|
<html>=0D
=0D
<P> </P>=0D
<P>Hi,</P>=0D
<P>We are using QuickFix 4.2. In our architecture we have Server using Acce=
ptor and client using Initiator..</P>=0D
<P>Now when client wants to end its session it has to send logout msg to se=
rver.</P>=0D
<P>Which is refined way to do it.........?</P>=0D
<P>I have tried out like this -----</P>=0D
<P><STRONG> FIX::SessionID *pSessionID =3D new FIX::=
SessionID (FIX::BeginString("FIX.4.2"), FIX::SenderCompID ( GetSender=
CompID()), FIX::TargetCompID( GetTargetCompID()));</STRONG></P>=0D
<P><BR>
<STRONG> FIX::Session *pSession =3D FIX::Session::lo=
okupSession( *pSessionID);<BR>
if (pSessionID !=3D NULL)<BR>
{<BR>
pSession->generateLogout("Logout by Phoeni=
x User");<BR>
pSession->disconnect();<BR>
FIX::Session::removeSession(*pSession);<BR>
}</STRONG></P>=0D
<P>Is this correct way to do it....because i had made func generateLogout()=
public from private in Session class.</P>=0D
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN style=3D"FONT-SIZE: =
10pt; FONT-FAMILY: Arial">Could anyone throw some light on it</SPAN></FONT>=
<FONT face=3DArial size=3D2><SPAN style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Ar=
ial"> </SPAN></FONT></P>=0D
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN style=3D"FONT-SIZE: =
10pt; FONT-FAMILY: Arial">Thanks in Advance,<BR>
</SPAN></FONT>Ananth </P>=0D
</html><BR>=
|