B2BITS FIX Antenna HFT  1.0.16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
Engine::SessionStateFSM Class Referenceabstract

#include <BinaryProtocols.h>

Public Member Functions

virtual bool close (FixSessionUProtocol *sn, const std::string &aDescription="")=0
 Closes session. More...
 
virtual bool disconnectNonGracefully (FixSessionUProtocol *sn)=0
 Closes the telecommunication link and switches the session into the NON_GRACEFULLY_TERMINATED state. More...
 
virtual bool onTimer (FixSessionUProtocol *sn, bool &connectionLost)=0
 A derivable method to call by SessionMgr - performs all activity related to time intervals. More...
 
virtual bool ping (FixSessionUProtocol *sn, const std::string &testReqID)=0
 Sends the Test Request message. More...
 
virtual bool processApplication (FixSessionUProtocol *sn, Engine::FIXMessage *, Engine::FIXMessageProcessElem *work)=0
 Process the given application message from the remote side. More...
 
virtual bool processAsyncConnect (FixSessionUProtocol *sn, int err)=0
 Process async connect operation completion. More...
 
virtual bool processHeartBeat (FixSessionUProtocol *sn, Engine::FIXMessage const &msg)=0
 Process the given HeartBeat message from the remote side. More...
 
virtual bool processLogon (FixSessionUProtocol *sn, Engine::FIXMessage const &msg)=0
 Process the given Logon message from the remote side. More...
 
virtual bool processLogout (FixSessionUProtocol *sn, Engine::FIXMessage const &msg)=0
 Process the given Logout message from the remote side. More...
 
virtual bool processResendRequest (FixSessionUProtocol *sn, Engine::FIXMessage const &msg)=0
 Process the given ResendRequest message from the remote side. More...
 
virtual bool processSequenceReset (FixSessionUProtocol *sn, Engine::FIXMessage const &msg)=0
 Process the given SequenceReset message from the remote side. More...
 
virtual bool processSessionLevelReject (FixSessionUProtocol *sn, Engine::FIXMessage const &msg, Engine::FIXMessageProcessElem *work)=0
 Process the given SessionLevelReject message from the remote side. More...
 
virtual bool processTestRequest (FixSessionUProtocol *sn, Engine::FIXMessage const &msg)=0
 Process the given TestRequest message from the remote side. More...
 
virtual bool resetSeqNum (FixSessionUProtocol *sn)=0
 Resets sequence numbers. More...
 
virtual bool resetSeqNumLocally (FixSessionUProtocol *sn, Session *engineSession)=0
 Resets sequence numbers. More...
 

Member Function Documentation

virtual bool Engine::SessionStateFSM::close ( FixSessionUProtocol *  sn,
const std::string &  aDescription = "" 
)
pure virtual

Closes session.

virtual bool Engine::SessionStateFSM::disconnectNonGracefully ( FixSessionUProtocol *  sn)
pure virtual

Closes the telecommunication link and switches the session into the NON_GRACEFULLY_TERMINATED state.

virtual bool Engine::SessionStateFSM::onTimer ( FixSessionUProtocol *  sn,
bool &  connectionLost 
)
pure virtual

A derivable method to call by SessionMgr - performs all activity related to time intervals.

Returns
false if onLinkError() must be called, true otherwise.
virtual bool Engine::SessionStateFSM::ping ( FixSessionUProtocol *  sn,
const std::string &  testReqID 
)
pure virtual

Sends the Test Request message.

virtual bool Engine::SessionStateFSM::processApplication ( FixSessionUProtocol *  sn,
Engine::FIXMessage ,
Engine::FIXMessageProcessElem work 
)
pure virtual

Process the given application message from the remote side.

Returns
true if the message must be places into Persistent Storage, otherwise false.
virtual bool Engine::SessionStateFSM::processAsyncConnect ( FixSessionUProtocol *  sn,
int  err 
)
pure virtual

Process async connect operation completion.

virtual bool Engine::SessionStateFSM::processHeartBeat ( FixSessionUProtocol *  sn,
Engine::FIXMessage const &  msg 
)
pure virtual

Process the given HeartBeat message from the remote side.

virtual bool Engine::SessionStateFSM::processLogon ( FixSessionUProtocol *  sn,
Engine::FIXMessage const &  msg 
)
pure virtual

Process the given Logon message from the remote side.

virtual bool Engine::SessionStateFSM::processLogout ( FixSessionUProtocol *  sn,
Engine::FIXMessage const &  msg 
)
pure virtual

Process the given Logout message from the remote side.

virtual bool Engine::SessionStateFSM::processResendRequest ( FixSessionUProtocol *  sn,
Engine::FIXMessage const &  msg 
)
pure virtual

Process the given ResendRequest message from the remote side.

virtual bool Engine::SessionStateFSM::processSequenceReset ( FixSessionUProtocol *  sn,
Engine::FIXMessage const &  msg 
)
pure virtual

Process the given SequenceReset message from the remote side.

virtual bool Engine::SessionStateFSM::processSessionLevelReject ( FixSessionUProtocol *  sn,
Engine::FIXMessage const &  msg,
Engine::FIXMessageProcessElem work 
)
pure virtual

Process the given SessionLevelReject message from the remote side.

virtual bool Engine::SessionStateFSM::processTestRequest ( FixSessionUProtocol *  sn,
Engine::FIXMessage const &  msg 
)
pure virtual

Process the given TestRequest message from the remote side.

virtual bool Engine::SessionStateFSM::resetSeqNum ( FixSessionUProtocol *  sn)
pure virtual

Resets sequence numbers.

virtual bool Engine::SessionStateFSM::resetSeqNumLocally ( FixSessionUProtocol *  sn,
Session engineSession 
)
pure virtual

Resets sequence numbers.