[Quickfix-developers] Fw: reverseRoute() method
Brought to you by:
orenmnero
From: H. S. <st...@st...> - 2004-02-29 21:15:53
|
Hello, regarding to my post from 04/02/17 and Orens suggestions I finally had time to wrap stuff into a method. Attached you find a diff against Message.cpp and Message.h that adds a method called "reverseRoute". This method prepares a FIX::Message object and adds BeginString, SenderCompID, TargetCompID, OnBehalfOfCompID, DeliverToCompID, OnBehalfOfSubID and DeliverToSubID tags to the message header depending on an underlying message header. Using that method you can do something like : fromApp(Message foo , SessionID sessionID ) { Message back; back.reverseRoute( foo.getHeader() ); /* add your payload here */ Session::sendToTarget( back ); } ... which then will get routed correctly to your peer. Additionally I've added the new patches to Session.cpp which now use reverseRoute() to add routing tags to session level reject messages. Oren, please let me know if that stuff and the small patch to SocketConnection.cpp i posted on 04/02/18 will go into the tree. Otherwise I'll keep the patches in a local repository. Kind regards, Heri -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. |