This repository has been archived by the owner on May 29, 2020. It is now read-only.
forked from libtrading/libtrading
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX: access to raw message representation introduced
This patch adds a simple but quite useful feature. Once a FIX message is sent or received a user is allowed to inspect its raw representation i.e. a user is allowed to inspect a message in a form it is transfered through the wire (pure FIX payload). This feature can be applied in various cases but the main one is logging. If one's goal is to log FIX session, this feature allows to do that in a very efficient way. No need to process a message in any way, no need to format a message. Once fix_session_send or fix_session_recv returns a user can access msg->iov and log the data which were sent or received - no preprocessing is needed. As an illustration, this patch implements fprintmsg_iov using a new feature. fprintmsg_iov looks more elegant in comparison to fprintmsg. Moreover, it outputs every single field while fprintmsg has its own limitation. Furthermore, fprintmsg_iov tells us how floats were formatted in a real stream which fprintmsg has no chances to know. Important notes: * msg->iov is *only* valid after fix_session_recv or fix_session_send returns. Subsequent calls invalidate the pointer. * msg->iov[i].iov_len might be zero (i = 0, 1) Signed-off-by: Marat Stanichenko <mstanichenko@gmail.com>
- Loading branch information
1 parent
701dd1e
commit 1254d4e
Showing
6 changed files
with
37 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters