RE: [Quickfix-developers] Quickfix 1.5, session shutdown
Brought to you by:
orenmnero
From: Brian E. <Br...@ma...> - 2003-07-09 20:02:39
|
Here's what I've come up with to have all my sessions log out when my application shutsdown: In the Application::onLogon event I add the SessionID to a list. Likewise, in the Application::onLogout event, I remove the sessionID from the list. When my app shutdowns, I send logout messages to all sessions in my logged in list. I then wait for the size of list to become zero, or for x seconds to elapse. -----Original Message----- From: Oren Miller [mailto:ore...@ya...] Sent: Monday, July 07, 2003 4:09 PM To: Paul Beechey; qui...@li... Subject: Re: [Quickfix-developers] Quickfix 1.5, session shutdown QuickFIX doesn't send logouts automatically, it rudely hangs up. I would very much like to add this capability however. You can manually send logouts however QF will not wait for an ackownledgement before shutting down. --- Paul Beechey <pau...@ai...> wrote: > Hi all, > > I have still not managed to figure out how to make > the quickfix library > automatically logout when I call stop() on my > session. > > Quickfix (I believe) calls onLogout, at this point > should I do a > SendToTarget with a Logout message myself, i.e. not > a quickfix > originated message? > > Would appreciate some help as I am really stuck on > this one. I am using > version 1.5, C++ version. > > Many thanks again in advance, > > Paul > > Paul Beechey > Technical Architect > Aitken Campbell & Company Ltd. > Telephone: 0121 697 7011 > Fax: 0121 698 8624 > Mobile: 07764 445867 > Email: pau...@ai... > IMPORTANT > Internet communications are not necessarily secure > and may be > intercepted or changed after they are sent. Aitken > Campbell & Company > Limited does not accept liability for any such > changes. If you wish to > confirm the origin or the content of this > communication, please contact > the sender using an alternative means of > communication. > This communication does not create or modify any > contract. > If you are not the intended recipient of this > communication you should > destroy it without copying, disclosing or otherwise > using its content. > Please notify the sender immediately of the error. > Aitken Campbell & Company Limited is a subsidiary of > TDWSCH Holding > Company Limited, a joint venture formed by TD > Waterhouse Group Inc. and > The Charles Schwab Corporation. > Aitken Campbell & Company Limited is a member of the > London Stock > Exchange Regulated by FSA > Registered Office: Abbey House, 2nd Floor, 10 > Bothwell Street, Glasgow, > G2 6NT Reg. No. SC97757 Registered in Scotland. > > __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 _______________________________________________ Quickfix-developers mailing list Qui...@li... https://lists.sourceforge.net/lists/listinfo/quickfix-developers |