Re: [Quickfix-developers] How do I manually reset my sequence number?
Brought to you by:
orenmnero
|
From: nri <Nic...@co...> - 2007-12-03 22:57:26
|
try something like this...
FIX::Session::lookupSession(sessionId)->setNextSenderMsgSeqNum(Send());
FIX::Session::lookupSession(sessionId)->setNextTargetMsgSeqNum(Recv());
where Send() and Recv() are the values you want to set too.
cheers
Nick
mrvictory1999 wrote:
>
> I am connecting to a broker using QuickFix. In the case where our
> sequence numbers get out of sync, I am having trouble re-syncing.
>
> Specifically, if my QuickFix engine believes the sequence number should be
> 200, but the broker thinks it should be 300, I'll get a message like:
> MsgSeqNum too low, expecting 300 but received 200 Logon
>
> QuickFix will then repeatedly try to log in, incrementing the sequence
> number each time. So after 100 tries, it'll be at the right number.
>
> I need to know how to manually set my sequence number to 300 so that I can
> skip the 100 reconnect attempts.
>
> Thanks for your help!
> Matt
>
--
View this message in context: http://www.nabble.com/How-do-I-manually-reset-my-sequence-number--tf4754663.html#a14140287
Sent from the QuickFIX - Dev mailing list archive at Nabble.com.
|