Re: [Quickfix-developers] Just Starting...
Brought to you by:
orenmnero
From: <or...@qu...> - 2008-03-13 22:09:28
|
<html><body><div>Well if that's all you want to do then just don't pass the message into your OMS when the flag is true. The DoNotSend exception doesn't enter into it. In reality you should very rarely encounter this situation because you will only ever see a PossDup message if the engine has not seen the message before. Meaning it came as a result of a resend request. But in this case all you have to do is see that the value is true, then simply don't pass it along.</div> <div> </div> <div>--oren<BR></div> <BLOCKQUOTE style="PADDING-LEFT: 8px; MARGIN-LEFT: 8px; BORDER-LEFT: blue 2px solid" webmail="1">-------- Original Message --------<BR>Subject: Re: [Quickfix-developers] Just Starting...<BR>From: "mr azmat" <mr...@gm...><BR>Date: Thu, March 13, 2008 4:56 pm<BR>To: <a href="mailto:or...@qu...">or...@qu...</a><BR>Cc: <a href="mailto:qui...@li...">qui...@li...</a><BR><BR>QuickFIX Documentation: <a href="http://www.quickfixengine.org/quickfix/doc/html/index.html" target=_blank>http://www.quickfixengine.org/quickfix/doc/html/index.html</a><BR>QuickFIX Support: <a href="http://www.quickfixengine.org/services.html" target=_blank>http://www.quickfixengine.org/services.html</a><BR><BR> <HR> Hmm, I'm not sure I quite understand your second paragraph.<BR><BR>Basically I want to check PossDup on receipt and if it is TRUE...I'd like to discard the message altogether before it gets into our OMS.<BR>Isn't that the entire purpose of the PossDupFlag? <BR><BR>thanks-<BR>azmat<BR><BR> <DIV class=gmail_quote>On Thu, Mar 13, 2008 at 4:50 PM, <<a onclick="Popup.composeWindow('pcompose.php?sendto=oren%40quickfixengine.org');; return false;" href="mailto:or...@qu..." target=_blank><a href="mailto:or...@qu...">or...@qu...</a></A>> wrote:<BR> <BLOCKQUOTE class=gmail_quote style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid"> <DIV> <DIV>You are kind of talking about two different things here. One is checking for a possdup flag on receipt, which is simply a matter of checking for the field in the header.</DIV> <DIV> </DIV> <DIV>The other is checking in sent messages presumably because you don't want to send messages that didn't make it out the first time. In this case can you elaborate on what problem you encountered and what exactly isn't working in your port of the code?<BR><BR>--oren</DIV> <BLOCKQUOTE style="PADDING-LEFT: 8px; MARGIN-LEFT: 8px; BORDER-LEFT: blue 2px solid"> <DIV class=Ih2E3d>-------- Original Message --------<BR>Subject: Re: [Quickfix-developers] Just Starting...<BR></DIV> <DIV class=Ih2E3d>From: azmat <<A onclick="Popup.composeWindow('pcompose.php?sendto=mrazmat%40gmail.com');; return false;" href="mailto:mr...@gm..." target=_blank><a href="mailto:mr...@gm...">mr...@gm...</a></A>><BR>Date: Thu, March 13, 2008 4:40 pm<BR>To: <A onclick="Popup.composeWindow('pcompose.php?sendto=quickfix-developers%40lists.sourceforge.net');; return false;" href="mailto:qui...@li..." target=_blank><a href="mailto:qui...@li...">qui...@li...</a></A><BR><BR></DIV> <DIV> <DIV></DIV> <DIV class=Wj3C7c>QuickFIX Documentation: <A href="http://www.quickfixengine.org/quickfix/doc/html/index.html" target=_blank>http://www.quickfixengine.org/quickfix/doc/html/index.html</a><BR>QuickFIX Support: <a href="http://www.quickfixengine.org/services.html" target=_blank>http://www.quickfixengine.org/services.html</a><BR><BR><BR>All-<BR><BR>I need to check if the possdup flag is set, when I receive an execution<BR>report from the counter-party. I've also read many places that I should<BR>"throw a donotsend exception" in ToApp after I check for the PossDup flag. <BR><BR>Something similar to this, written by Caleb:<BR><a href="http://www.nabble.com/Request-resend-ts3856953.html#a3881695" target=_blank>http://www.nabble.com/Request-resend-ts3856953.html#a3881695</a><BR><BR><BR>For some reason I can't get this to work with C#. I'm having issues<BR>'translating' the C++ to C#, using QuickFix 1.2.4. This is quite<BR>frusturating. Has anyone done this in C#?<BR><BR><BR>thanks!<BR>azmat<BR><BR><BR><BR>Patrick Wright-3 wrote:<BR>> <BR>> QuickFIX Documentation:<BR>> <a href="http://www.quickfixengine.org/quickfix/doc/html/index.html" target=_blank>http://www.quickfixengine.org/quickfix/doc/html/index.html</a><BR>> QuickFIX Support: <a href="http://www.quickfixengine.org/services.html" target=_blank>http://www.quickfixengine.org/services.html</a><BR>> <BR>> Yes that is right.<BR>> <BR>> When you call sendtoTarget the toApp callback should be called by the<BR>> fix engine to allow you to do some processing before the message is sent<BR>> (log it for example). Also you can throw a DoNotSend exception here to<BR>> stop the message from being sent. toApp will also be called when the<BR>> engine responds to a resend request.<BR>> <BR>> I have only been using this for a few months - other people may have a<BR>> better insight into this.<BR>> <BR>> Patrick<BR>> <BR>> <BR><BR>-- <BR>View this message in context: <a href="http://www.nabble.com/Just-Starting...-tp14811784p16039185.html" target=_blank>http://www.nabble.com/Just-Starting...-tp14811784p16039185.html</a><BR>Sent from the QuickFIX - Dev mailing list archive at <a href="http://nabble.com/" target=_blank><a href="http://Nabble.com">Nabble.com</a></A>.<BR><BR><BR>-------------------------------------------------------------------------<BR>This <A href="http://sf.net/" target=_blank><a href="http://SF.net">SF.net</a></A> email is sponsored by: Microsoft<BR>Defy all challenges. Microsoft(R) Visual Studio 2008.<BR><A href="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/" target=_blank>http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/</a><BR>_______________________________________________<BR>Quickfix-developers mailing list<BR><a href="#118aa1f8d3fd2f6b_Compose" target=_self>Quickfix-developers<B></B>@lists.sourceforge.net</A><BR><A href="https://lists.sourceforge.net/lists/listinfo/quickfix-developers" target=_blank>https://lists.sourceforge.net/lists/listinfo/quickfix-developers</a><BR></DIV></DIV></BLOCKQUOTE></DIV></BLOCKQUOTE></DIV><BR> <HR> -------------------------------------------------------------------------<BR>This <a href="http://SF.net">SF.net</a> email is sponsored by: Microsoft<BR>Defy all challenges. Microsoft(R) Visual Studio 2008.<BR><a href="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/" target=_blank>http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/</a> <HR> _______________________________________________<BR>Quickfix-developers mailing list<BR><a onclick="Popup.composeWindow('pcompose.php?sendto=Quickfix-developers%40lists.sourceforge.net'); return false;" href="#Compose">Quickfix-developers<B></B>@lists.sourceforge.net</A><BR><A href="https://lists.sourceforge.net/lists/listinfo/quickfix-developers" target=_blank>https://lists.sourceforge.net/lists/listinfo/quickfix-developers</a> </BLOCKQUOTE></body></html> |