#include <B2BITS_Application.h>

Public Member Functions | |
| virtual | ~Application () |
| virtual bool | process (const FIXMessage &msg, const Session &sn)=0 |
| virtual void | onLogonEvent (const LogonEvent *event, const Session &sn)=0 |
| virtual void | onLogoutEvent (const LogoutEvent *event, const Session &sn)=0 |
| virtual void | onUnexpectedMessageEvent (const UnexpectedMessageEvent *, const Session &) |
| virtual void | onSequenceGapEvent (const SequenceGapEvent *event, const Session &sn)=0 |
| virtual void | onSessionLevelRejectEvent (const SessionLevelRejectEvent *event, const Session &sn)=0 |
| virtual void | onMsgRejectEvent (const MsgRejectEvent *event, const Session &sn)=0 |
| virtual void | onHeartbeatWithTestReqIDEvent (const HeartbeatWithTestReqIDEvent &event, const Session &sn)=0 |
| virtual void | onResendRequestEvent (const ResendRequestEvent &event, const Session &sn)=0 |
| virtual void | onNewStateEvent (const NewStateEvent &event, const Session &sn)=0 |
| virtual void | onUnableToRouteMessage (const UnableToRouteMessageEvent &event, const Session &sn)=0 |
| virtual bool | onResend (const FIXMessage &msg, const Session &sn)=0 |
| virtual void | onNewConnectionAttempt (Session const &session) |
| virtual Engine::Application::~Application | ( | ) | [inline, virtual] |
Destructor
| virtual bool Engine::Application::process | ( | const FIXMessage & | msg, | |
| const Session & | sn | |||
| ) | [pure virtual] |
A call-back method to process incoming messages. If the application can not process the given message, the FIX Engine will try to deliver it later according to "Delayed Processing Algorithm".
| msg | the incoming message. | |
| sn | The corresponding FIX session. |
Implemented in Engine::AdminApplication.
| virtual void Engine::Application::onLogonEvent | ( | const LogonEvent * | event, | |
| const Session & | sn | |||
| ) | [pure virtual] |
This call-back method is called to notify that the Logon message has been received from the counterpart.
| event | Event information. | |
| sn | The corresponding FIX session. |
Implemented in Engine::AdminApplication.
| virtual void Engine::Application::onLogoutEvent | ( | const LogoutEvent * | event, | |
| const Session & | sn | |||
| ) | [pure virtual] |
This call-back method is called to notify that the Logout message has been received from the counterpart or the session was disconnected.
| event | Information about occured event. | |
| sn | The corresponding FIX session. |
Implemented in Engine::AdminApplication.
| virtual void Engine::Application::onUnexpectedMessageEvent | ( | const UnexpectedMessageEvent * | , | |
| const Session & | ||||
| ) | [inline, virtual] |
This call-back method is called to notify about recevied unexpected message. For example - when first message in session is not a Logon.
| event | Information about occured event. | |
| sn | The corresponding FIX session. |
Reimplemented in Engine::AdminApplication.
| virtual void Engine::Application::onSequenceGapEvent | ( | const SequenceGapEvent * | event, | |
| const Session & | sn | |||
| ) | [pure virtual] |
This call-back method is called when a message gap is detected in incoming messages.
| event | Information about occured event. | |
| sn | The corresponding FIX session. |
Implemented in Engine::AdminApplication.
| virtual void Engine::Application::onSessionLevelRejectEvent | ( | const SessionLevelRejectEvent * | event, | |
| const Session & | sn | |||
| ) | [pure virtual] |
This call-back method is called when a session-level Reject message (MsgType = 3) is received.
| event | Information about occured event. | |
| sn | The corresponding FIX session. |
Implemented in Engine::AdminApplication.
| virtual void Engine::Application::onMsgRejectEvent | ( | const MsgRejectEvent * | event, | |
| const Session & | sn | |||
| ) | [pure virtual] |
This call-back method is called when a message have to be rejected.
| event | - object that incapsulates rejected message | |
| sn | - session object that rejects message |
Implemented in Engine::AdminApplication.
| virtual void Engine::Application::onHeartbeatWithTestReqIDEvent | ( | const HeartbeatWithTestReqIDEvent & | event, | |
| const Session & | sn | |||
| ) | [pure virtual] |
This call-back method is called when a Heartbeat message (MsgType = 0) with the TestReqID field (tag = 112) has been received.
Usually such a message is sent in reply to a Test Request (MsgType = 1) message.
| event | Information about occured event. | |
| sn | The corresponding FIX session. |
Implemented in Engine::AdminApplication.
| virtual void Engine::Application::onResendRequestEvent | ( | const ResendRequestEvent & | event, | |
| const Session & | sn | |||
| ) | [pure virtual] |
This call-back method is called when a Resend Request (MsgType = 2) has been received.
| event | Information about occured event. | |
| sn | The corresponding FIX session. |
Implemented in Engine::AdminApplication.
| virtual void Engine::Application::onNewStateEvent | ( | const NewStateEvent & | event, | |
| const Session & | sn | |||
| ) | [pure virtual] |
This call-back method is called when the session has changed its state.
| event | Information about occured event. | |
| sn | The corresponding FIX session. |
Implemented in Engine::AdminApplication.
| virtual void Engine::Application::onUnableToRouteMessage | ( | const UnableToRouteMessageEvent & | event, | |
| const Session & | sn | |||
| ) | [pure virtual] |
This call-back method is called when the message has to be routed to the session, which does not exist.
| event | Information about occured event. | |
| sn | The corresponding FIX session. |
Implemented in Engine::AdminApplication.
| virtual bool Engine::Application::onResend | ( | const FIXMessage & | msg, | |
| const Session & | sn | |||
| ) | [pure virtual] |
This call-back method is called when an outgoing message is about to be resent as a reply to the incoming ResendRequest message.
If the method returns 'true' then the Engine resends the message to counterpart, otherwise it sends the SequenceReset Gap Fill message.
| msg | Outgoing message. | |
| sn | FIX session. |
Implemented in Engine::AdminApplication.
| virtual void Engine::Application::onNewConnectionAttempt | ( | Session const & | session | ) | [inline, virtual] |
This call-back method is called when session establishes new connection with remote server.
1.5.6