Thread: 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>=
|
|
From: Francis G. <fr...@at...> - 2005-10-02 19:59:23
|
Hi Dale, I do the same thing except my logoff code is simply m_initiator->Stop(). It works twice and the third login consistently fails. Any idea why? 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/ ---------------------------------------------------- |
|
From: Dale W. <wil...@oc...> - 2005-10-02 19:10:40
|
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&bugid=88&pos=8 > <http://www.quickfixengine.org/bugtracker/bug.php?op=show&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 <ans...@sp...> >> To: 'Oren Miller' <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' <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/ ---------------------------------------------------- |
|
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/ ---------------------------------------------------- |
|
From: Oren M. <or...@qu...> - 2005-10-03 15:12:27
|
We have looked at this, the problem is that we have not been able to =
duplicate this with the C++ API, only with the C# API. We have not =
forgotten about it and are looking at some possible reasons for this =
problem.
--oren
----- Original Message -----=20
From: Francis Gingras=20
To: 'Dale Wilson'=20
Cc: qui...@li...=20
Sent: Friday, September 30, 2005 3:57 PM
Subject: RE: [Quickfix-developers] How to Logout
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...]=20
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:=20
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(). =20
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=3Dshow&bugid=3D88&pos=
=3D8
Thanks,
Francis
-------------------------------------------------------------------------=
---
From: Dale Wilson [mailto:wil...@oc...]=20
Sent: Thursday, September 29, 2005 11:43
To: ans...@sp...
Cc: qui...@li...
Subject: Re: [Quickfix-developers] How to Logout
Hi Ananth=20
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:=20
QuickFIX Documentation: =
http://www.quickfixengine.org/quickfix/doc/html/index.html QuickFIX =
Support: http://www.quickfixengine.org/services.html=20
Ananth=20
----- Original Message -----=20
From: Ananth <ans...@sp...>
To: 'Oren Miller' <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 =3D new CCMEInitiatorApp;
FIX::SessionSettings settings( file );
FIX::FileStoreFactory storeFactory( settings );
FIX::FileLogFactory logFactory( settings );
FIX::SocketInitiator initiator =3D new FIX::SocketInitiator( =
*application, storeFactory, settings, logFactory );
m_initiator->start(); =
=20
application->run(file);
}
And my client side code for logout as u have mentioned is ..
FixLogout()
{
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->logout();
} =20
}
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=20
On Wed Sep 28 14:59 , 'Oren Miller' <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=20
--=20
-----------------------------------------------------
Dale Wilson, Senior Software Engineer =20
Object Computing, Inc. (OCI)
http://www.ociweb.com/ http://www.theaceorb.com/
----------------------------------------------------
--=20
-----------------------------------------------------
Dale Wilson, Senior Software Engineer =20
Object Computing, Inc. (OCI)
http://www.ociweb.com/ http://www.theaceorb.com/
---------------------------------------------------- |
|
From: Dale W. <wil...@oc...> - 2005-09-29 15:43:42
|
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 <ans...@sp...> > To: 'Oren Miller' <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' <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/ ---------------------------------------------------- |