Re: [Quickfix-developers] OrigSendingTime
Brought to you by:
orenmnero
|
From: Oren M. <or...@qu...> - 2005-09-26 15:24:32
|
It is conditionally required in the case that a message is resent: 122 OrigSendingTime N Required for message resends. If data is not available set to same value as SendingTime (Can be embedded within encrypted data section.) ----- Original Message ----- From: "Alexey Zubko" <ale...@in...> To: <qui...@li...> Sent: Monday, September 26, 2005 10:12 AM Subject: [Quickfix-developers] OrigSendingTime > QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > Hello, > > I have a question regarding processing of duplicated messages. > As I understand from the FIX (4.0) documentation the OrigSendingTime is > not a required field. > But QF generates a rejection message anyway. > See the code below (last QF version): > > bool Session::doPossDup( const Message& msg ) > { QF_STACK_PUSH(Session::doPossDup) > > const Header & header = msg.getHeader(); > OrigSendingTime origSendingTime; > SendingTime sendingTime; > MsgType msgType; > > header.getField( msgType ); > header.getField( sendingTime ); > > if ( msgType != MsgType_SequenceReset ) > { > if ( !header.isSetField( origSendingTime ) ) > { > generateReject( msg, 1, origSendingTime.getField() ); > return false; > } > header.getField( origSendingTime ); > > if ( origSendingTime > sendingTime ) > { > generateReject( msg, 10 ); > generateLogout(); > return false; > } > } > return true; > > QF_STACK_POP > } > > -- > > Regards, > Alexey Zubko > > Infinium Capital Corporation > (416) 360-7000 ext. 305 > > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. > Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > |