An interface for managing sessions.
More...
#include <B2BITS_SessionsManager.h>
An interface for managing sessions.
- See also
- FixEngine::registerSessionsManager()
◆ ~SessionsManager()
virtual Engine::SessionsManager::~SessionsManager |
( |
| ) |
|
|
inlinevirtual |
◆ 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
-
logonMsg | the incoming Logon message |
remoteAddr | ip address of the remote host |
remotePort | the remote port number to which the client socket is connected |
localPort | the 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
-
| pSn | the just terminated FIX session |
[out] | restartDelayMs | the 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
-
pSn | the newly created FIX session |
logonMsg | the incoming Logon message |