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::SessionsManager Class Referenceabstract

An interface for managing sessions. More...

#include <B2BITS_SessionsManager.h>

Public Member Functions

virtual bool onIncomingConnection (const FIXMessage &logonMsg, const IPAddr &remoteAddr, int remotePort, int localPort)
 A derivable method to call by FIX Engine when a new incomming connection was established and logon message was received from it. More...
 
virtual bool onUnregisteredAcceptor (Session *pSn, const FIXMessage &logonMsg)=0
 A derivable method to call by FIX Engine when a new acceptor's session was created without the registered application. More...
 
virtual ~SessionsManager ()
 Destructor. More...
 

Detailed Description

An interface for managing sessions.

See Also
FixEngine::registerSessionsManager()

Constructor & Destructor Documentation

virtual Engine::SessionsManager::~SessionsManager ( )
inlinevirtual

Destructor.

Member Function Documentation

virtual bool Engine::SessionsManager::onIncomingConnection ( const FIXMessage logonMsg,
const IPAddr remoteAddr,
int  remotePort,
int  localPort 
)
inlinevirtual

A derivable method to call by FIX Engine when a new incomming connection was established and logon message was received from it.

Returns
Return false to close connection. true otherwise.
Parameters
logonMsgthe incoming Logon message
remoteAddrip address of the remote host
remotePortthe remote port number to which the client socket is connected
localPortthe port number which was being listened when accepting incoming connection
virtual bool Engine::SessionsManager::onUnregisteredAcceptor ( Session pSn,
const FIXMessage logonMsg 
)
pure virtual

A derivable method to call by FIX Engine when a new acceptor's session was created without the registered application.

It is possible to register application inside this method.

Returns
Return false to reject session. true otherwise.
Parameters
pSnthe newly created FIX session
logonMsgthe incoming Logon message