Re: [Quickfix-developers] Stop sending heartbeat message
Brought to you by:
orenmnero
|
From: Oren M. <or...@qu...> - 2007-03-07 17:15:40
|
Hi Dave,
There is no provision to do this out of the box. If you want to do
something like this you'll have to modify the code a bit. If you
look in the Session::next() call, you will see this statement.
else if ( m_state.needHeartbeat() )
{
generateHeartbeat();
}
That is where it decides a heartbeat should go out. You could add a
stopSendingHeartbeats boolean check there to rig the engine to stop
heartbeating. This would only effect unsolicited heartbeats,
heartbeats in response to test requests would still work. To disable
those as will you would have to also modify the
Session::nextTestRequest method.
--oren
On Mar 7, 2007, at 11:07 AM, DaveX wrote:
> QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/
> html/index.html
> QuickFIX Support: http://www.quickfixengine.org/services.html
>
>
> Hi, Experts out there
>
> I am using QuickFix 4.2 in one of my testing simulator. How do I stop
> sending heartbeat responses to client? This is just to test the
> reaction of
> the client. I know throwing Exception DoNotSend in toApp() will
> stop sending
> app messages, Can I do something similar in toAdmin() to stop
> sending admin
> messages. Many thanks to any reply.
>
> Dave
> --
> View this message in context: http://www.nabble.com/Stop-sending-
> heartbeat-message-tf3363469.html#a9357283
> Sent from the QuickFIX - Dev mailing list archive at Nabble.com.
>
>
> ----------------------------------------------------------------------
> ---
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to
> share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?
> page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Quickfix-developers mailing list
> Qui...@li...
> https://lists.sourceforge.net/lists/listinfo/quickfix-developers
>
|