Re: [Quickfix-developers] reject messages
Brought to you by:
orenmnero
|
From: <OM...@th...> - 2003-01-06 20:18:16
|
Reject messages are administrative. You will see them come through on =
the
fromAdmin method. From there you can pull fields out like you would an=
y
other message. Determining the reject reason can be trickier. FIX 4.2=
and
up have a SessionRejectReason field that tells you why a message was
rejected. Earlier versions only have a text field which may or may not=
be
consistent among various conterparties.
In FIX 4.2, to follow your example, an message with an incorrect tag va=
lue
can be detected like so.
SessionRejectReason sessionRejectReason;
message.get(sessionRejectReason);
if( sessionRejectReason =3D=3D SessionRejectReason_VALUE_IS_INCORRECT )=
{
RefTagID refTagID; /* the field tag that has the incorrect value */
RefSeqNum refSeqNum; /* the sequence number of the rejected message *=
/
RefMsgType refMsgType; /* the message type of the rejected message */=
Text text;
message.get(refTagID);
message.get(refSeqNum);
message.get(refMsgType);
message.get(text);
}
For versions before 4.2, all you have are the Text and RefSeqNum fields=
.
If you want to know the reason the message was rejected, you are going =
to
have to do some sort of check against the Text, which is often a
proprietary message.
--oren
|---------+----------------------------------------------->
| | s....@gm... |
| | Sent by: |
| | qui...@li...|
| | ceforge.net |
| | |
| | |
| | 01/06/2003 08:18 AM |
| | |
|---------+----------------------------------------------->
>--------------------------------------------------------------------=
--------------------------|
| =
|
| To: qui...@li... =
|
| cc: =
|
| Subject: [Quickfix-developers] reject messages =
|
>--------------------------------------------------------------------=
--------------------------|
Hello guys,
how would one parse reject messages ? i didnt find anything in the exam=
ple
code.
for example, if the peer sends a reject message like
FIX::IncorrectTagValue,
how would the other side catch this message on application side ?
a short and simple piece of code would be great.
thanks in advance.
saw
--
+++ GMX - Mail, Messaging & more http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr f=FCr 1 ct/ Min. surfen!
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Quickfix-developers mailing list
Qui...@li...
https://lists.sourceforge.net/lists/listinfo/quickfix-developers
=
|