{{Quickfixn}} LogOn And LogOut
Grant Birchmeier
gbirchmeier at connamara.com
Mon Nov 25 09:27:23 PST 2013
Set your StartTime/EndTime in your config to when you want to start or stop
the connection. Then call initiator.Start(), which starts the initiator on
a separate QF thread. As long as your app's main thread is alive, the
initiator will startup and shutdown according to your config times.
Your app is shutting down immediately because your application.Run() call
returns immediately (this is something you implemented, which you borrowed
from from TradeClient I believe).
You need to do something that keeps the main thread alive. A really easy
and silly way would be to use "while(true){sleep(5000);}" or something. Or
you could have it wait on a console command, like TradeClient does. In a
UI application, the UI might keep the application open for you.
On Mon, Nov 25, 2013 at 11:01 AM, Ashutosh Mishra <A.Mishra at ny.tr.mufg.jp>wrote:
> Hi Grant,
>
> I have used this code as is in my program.cs file
>
> initiator.Start();
>
> application.Run();
>
> initiator.Stop();
>
>
>
> so, my initiator logs on and than logs off.
>
> How can I make it to be logged on and log out with user intervention?
>
>
>
> Thanks & Regards,
>
> Ashutosh Mishra
>
>
>
>
> *********************************************************************************
>
> This communication (including any attachments) is intended only or the use
> of the individual whom it is addressed and may contain information that is
> privileged, confidential or legally protected. If the reader of this
> message is not the intended recipient, you are hereby notified that any
> dissemination, distribution or copying of this communication is strictly
> prohibited. If you have received this communication in error, please notify
> us immediately by replying to the message. Please also delete the message
> and its attachments, if any, from your computer and destroy any hard copies
> you may have created. Thank you for your cooperation.
>
>
> *********************************************************************************
>
>
>
> _______________________________________________
> Quickfixn mailing list
> Quickfixn at lists.quickfixn.com
> http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com
>
>
--
Grant Birchmeier
*Connamara Systems, LLC*
*Made-To-Measure Trading Solutions.*
Exactly what you need. No more. No less.
http://connamara.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20131125/f50f49d0/attachment-0002.htm>
More information about the Quickfixn
mailing list