An interface for managing sessions.
More...
#include <B2BITS_SessionsManager.h>
An interface for managing sessions.
- See Also
- FixEngine::registerSessionsManager()
virtual Engine::SessionsManager::~SessionsManager |
( |
| ) |
|
|
inlinevirtual |
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 |
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 |