Re: [Quickfix-developers] How to Logout
Brought to you by:
orenmnero
|
From: Ananth <ans...@sp...> - 2005-09-29 13:58:44
|
<html>=0D
<BR>
<BR>
Ananth <BR>
<BR>
<B><BR>
----- Original Message ----- <BR>
From: Ananth <ans...@sp...><BR>
To: 'Oren Miller' <or...@qu...><BR>
Sent: Thu Sep 29 3:22<BR>
Subject: Fwd: Re: [Quickfix-developers] How to Logout<BR>
<BR>
<BR>
</B>=0D
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT face=3D"Times New =
Roman" size=3D3>Hi,</FONT></P>=0D
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><O:P><FONT face=3D"Times=
New Roman" size=3D3> </FONT></O:P></P>=0D
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT face=3D"Times New =
Roman" size=3D3>My client side code for login is =85.</FONT></P>=0D
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><O:P><FONT face=3D"Times=
New Roman" size=3D3> </FONT></O:P></P>=0D
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><B style=3D"mso-bidi-fon=
t-weight: normal"><FONT size=3D3><FONT face=3D"Times New Roman">FixLogin( s=
tring file)<O:P></O:P></FONT></FONT></B></P>=0D
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><B style=3D"mso-bidi-fon=
t-weight: normal"><FONT size=3D3><FONT face=3D"Times New Roman">{<O:P></O:P=
></FONT></FONT></B></P>=0D
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt 0.5in"><B style=3D"mso-bi=
di-font-weight: normal"><FONT size=3D3><FONT face=3D"Times New Roman">appli=
cation =3D new CCMEInitiatorApp;<O:P></O:P></FONT></FONT></B></P>=0D
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt 0.5in"><B style=3D"mso-bi=
di-font-weight: normal"><FONT size=3D3><FONT face=3D"Times New Roman">FIX::=
SessionSettings settings( file );<O:P></O:P></FONT></FONT></B></P>=0D
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt 0.5in"><B style=3D"mso-bi=
di-font-weight: normal"><FONT size=3D3><FONT face=3D"Times New Roman">FIX::=
FileStoreFactory storeFactory( settings );<O:P></O:P></FONT></FONT></B></P>=
=0D
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt 0.5in"><B style=3D"mso-bi=
di-font-weight: normal"><FONT size=3D3><FONT face=3D"Times New Roman">FIX::=
FileLogFactory logFactory( settings );<O:P></O:P></FONT></FONT></B></P>=0D
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt 0.5in"><B style=3D"mso-bi=
di-font-weight: normal"><FONT size=3D3><FONT face=3D"Times New Roman">FIX::=
SocketInitiator<SPAN style=3D"mso-spacerun: yes"> </SPAN>initiator =
=3D new FIX::SocketInitiator( *application, storeFactory, settings, logFact=
ory );<O:P></O:P></FONT></FONT></B></P>=0D
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt 0.5in"><B style=3D"mso-bi=
di-font-weight: normal"><FONT size=3D3><FONT face=3D"Times New Roman">m_ini=
tiator->start();<SPAN style=3D"mso-tab-count: 5">  =
; &n=
bsp;  =
; &n=
bsp; </SPAN><O:P></O:P></FO=
NT></FONT></B></P>=0D
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt 0.5in"><B style=3D"mso-bi=
di-font-weight: normal"><FONT size=3D3><FONT face=3D"Times New Roman">appli=
cation->run(file);<O:P></O:P></FONT></FONT></B></P>=0D
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><B style=3D"mso-bidi-fon=
t-weight: normal"><FONT size=3D3><FONT face=3D"Times New Roman">}<O:P></O:P=
></FONT></FONT></B></P>=0D
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><O:P><FONT face=3D"Times=
New Roman" size=3D3> </FONT></O:P></P>=0D
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT face=3D"Times New =
Roman" size=3D3>And my client side code for logout<SPAN style=3D"mso-spacer=
un: yes"> </SPAN>as u have mentioned is =85=85</FONT></P>=0D
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><O:P><FONT face=3D"Times=
New Roman" size=3D3> </FONT></O:P></P>=0D
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><B style=3D"mso-bidi-fon=
t-weight: normal"><FONT size=3D3><FONT face=3D"Times New Roman">FixLogout()=
<O:P></O:P></FONT></FONT></B></P>=0D
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><B style=3D"mso-bidi-fon=
t-weight: normal"><FONT size=3D3><FONT face=3D"Times New Roman">{<O:P></O:P=
></FONT></FONT></B></P>=0D
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt 0.5in"><B style=3D"mso-bi=
di-font-weight: normal"><FONT size=3D3><FONT face=3D"Times New Roman">FIX::=
SessionID *pSessionID =3D new FIX::SessionID (FIX::BeginString("FIX.4.2"), =
FIX::SenderCompID( GetSenderCompID()), FIX::TargetCompID( GetTargetCompID()=
));<O:P></O:P></FONT></FONT></B></P>=0D
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt 0.5in"><B style=3D"mso-bi=
di-font-weight: normal"><FONT size=3D3><FONT face=3D"Times New Roman">FIX::=
Session *pSession =3D FIX::Session::lookupSession( *pSessionID);<O:P></O:P>=
</FONT></FONT></B></P>=0D
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt 0.5in"><B style=3D"mso-bi=
di-font-weight: normal"><FONT size=3D3><FONT face=3D"Times New Roman">if (p=
SessionID !=3D NULL)<O:P></O:P></FONT></FONT></B></P>=0D
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt 0.5in"><B style=3D"mso-bi=
di-font-weight: normal"><FONT size=3D3><FONT face=3D"Times New Roman">{<O:P=
></O:P></FONT></FONT></B></P>=0D
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt 0.5in"><B style=3D"mso-bi=
di-font-weight: normal"><FONT size=3D3><FONT face=3D"Times New Roman"><SPAN=
style=3D"mso-tab-count: 1">  =
; </SPAN>pSession->logout();<O:P></O:P></FONT></FONT><=
/B></P>=0D
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt 0.5in"><B style=3D"mso-bi=
di-font-weight: normal"><FONT size=3D3><FONT face=3D"Times New Roman">}<SPA=
N style=3D"mso-tab-count: 4"> &nbs=
p; &=
nbsp; &nbs=
p; &=
nbsp; </SPAN><O:P></O:P></FONT></FONT></B></P>=0D
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><B style=3D"mso-bidi-fon=
t-weight: normal"><FONT size=3D3><FONT face=3D"Times New Roman">}<O:P></O:P=
></FONT></FONT></B></P>=0D
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><O:P><FONT face=3D"Times=
New Roman" size=3D3> </FONT></O:P></P>=0D
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT face=3D"Times New =
Roman" size=3D3>Once I clicked logout its logging me out, but I am unable t=
o login again=85.by calling same FixLogin( string file)<B style=3D"mso-bidi=
-font-weight: normal"> </B><SPAN style=3D"mso-spacerun: yes"> </SPAN>a=
gain. Am I doing mistake some where</FONT></P>=0D
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><O:P><FONT face=3D"Times=
New Roman" size=3D3> </FONT></O:P></P>=0D
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT face=3D"Times New =
Roman" size=3D3>Can you please help me out.</FONT></P>=0D
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><O:P><FONT face=3D"Times=
New Roman" size=3D3> </FONT></O:P></P>=0D
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><O:P></O:P><FONT face=3D=
Arial size=3D2><SPAN style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Thanks i=
n Advance,<BR>
</SPAN></FONT>Ananth </P>=0D
<P> </P>=0D
<P> </P>=0D
<P><BR>
<B>On Wed Sep 28 14:59 , 'Oren Miller' <or...@qu...> sent=
:<BR>
<BR>
</B></P>=0D
<BLOCKQUOTE style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5p=
x; BORDER-LEFT: #5167c6 2px solid; MARGIN-RIGHT: 0px"><DEFANGED_META http-e=
quiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-1"><DEFANGED=
_META name=3D"GENERATOR" content=3D"MSHTML 6.00.2900.2722"><DEFANGED_BODY b=
gColor=3D"#ffffff">=0D
<DIV><FONT face=3DArial size=3D2>Just call the public logout() method on th=
e Session class.</FONT></DIV>=0D
<DIV><FONT face=3DArial size=3D2></FONT> </DIV></BLOCKQUOTE><BR>
=0D
</html><BR>=
|