[Quickfix-users] How reset the message sequence number
Brought to you by:
orenmnero
From: kbo <kbo...@gm...> - 2007-06-13 00:03:04
|
Hi all, I'm new to QuickFix, and must admit it's beautifully written (although some more samples and documentation won't hurt). Anyway, I'm having problems with my counter party - timeouts lead to misalignment in the message sequence number, and I would like to reset the sequence. My counter party hasn't implemented the 'reset on logon' flag option, so all I can do is use an initially high message sequence number and send a SequenceReset message immediately after logon. My questions are: 1) is that indeed the best thing to do? 2) how do I modify the initial message sequence number (I'm using C#, and every time I try to modify that field inside toAdmin() I wind up just adding another duplicate field with a different value...)? 3) can I configure QuickFix to send the SequenceReset reset (or alternatively - is there any QuickFix API that will do that for me) or must I do it manually (and if so, where? is onLogon() an appropriate location for such a call?) Thanks! kbo |