Re: [Quickfix-users] How reset the message sequence number
Brought to you by:
orenmnero
From: nri <Nic...@co...> - 2007-06-15 00:06:29
|
> 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...)? I do it this way in C++ void Dispatcher::onCreate(const FIX::SessionID& sessionId) { ACE_Guard<ACE_SYNCH_RECURSIVE_MUTEX> guard(gateway_->mutex_); std::cout << "\nTODO nri: FIX Session created. should notify orms" << endl; // This could change.... gateway_->setSessionId(sessionId); // Set the send, recv once only on the initial connect static bool done = false; if (! done) { FIX::Session::lookupSession(sessionId)->setNextSenderMsgSeqNum(gateway_->Send()); FIX::Session::lookupSession(sessionId)->setNextTargetMsgSeqNum(gateway_->Recv()); done = true; } } -- View this message in context: http://www.nabble.com/How-reset-the-message-sequence-number-tf3911428.html#a11131095 Sent from the QuickFIX - User mailing list archive at Nabble.com. |