B2BITS FIX Antenna C++ 2.32.0
Loading...
Searching...
No Matches
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.
 
virtual bool onSessionTerminated (Session *pSn, int &restartDelayMs)
 A derivable method to call by FIX Engine when a session has been terminated.
 
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.
 
virtual ~SessionsManager ()
 Destructor.
 

Detailed Description

An interface for managing sessions.

See also
FixEngine::registerSessionsManager()

Constructor & Destructor Documentation

◆ ~SessionsManager()

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

Destructor.

Member Function Documentation

◆ onIncomingConnection()

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

◆ onSessionTerminated()

virtual bool Engine::SessionsManager::onSessionTerminated ( Session * pSn,
int & restartDelayMs )
inlinevirtual

A derivable method to call by FIX Engine when a session has been terminated.

Returns
Return true to re-start the session. false otherwise.
Parameters
pSnthe just terminated FIX session
[out]restartDelayMsthe session re-start delay in milliseconds. -1 - use session ReconnectInterval property as delay if defined or immediately otherwise. 0 - immediately. any other value - time in milliseconds to delay session re-start. default is -1.

◆ onUnregisteredAcceptor()

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