Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
FIX::ServerWrapper Class Reference

Handles events from SocketMonitor for server connections. More...

Inheritance diagram for FIX::ServerWrapper:
Inheritance graph
[legend]
Collaboration diagram for FIX::ServerWrapper:
Collaboration graph
[legend]

Public Member Functions

 ServerWrapper (std::set< int > sockets, SocketServer &server, SocketServer::Strategy &strategy)
 
- Public Member Functions inherited from FIX::SocketMonitor::Strategy
virtual ~Strategy ()
 

Private Types

typedef std::set< int > Sockets
 

Private Member Functions

void onConnect (SocketMonitor &, int socket)
 
void onEvent (SocketMonitor &monitor, int socket)
 
void onWrite (SocketMonitor &, int socket)
 
void onError (SocketMonitor &monitor, int socket)
 
void onError (SocketMonitor &)
 
void onTimeout (SocketMonitor &)
 

Private Attributes

Sockets m_sockets
 
SocketServerm_server
 
SocketServer::Strategym_strategy
 

Detailed Description

Handles events from SocketMonitor for server connections.

Definition at line 55 of file SocketServer.cpp.

Member Typedef Documentation

◆ Sockets

typedef std::set<int> FIX::ServerWrapper::Sockets
private

Definition at line 115 of file SocketServer.cpp.

Constructor & Destructor Documentation

◆ ServerWrapper()

FIX::ServerWrapper::ServerWrapper ( std::set< int >  sockets,
SocketServer server,
SocketServer::Strategy strategy 
)
inline

Definition at line 74 of file SocketServer.cpp.

77  {

Member Function Documentation

◆ onConnect()

void FIX::ServerWrapper::onConnect ( SocketMonitor ,
int  socket 
)
inlineprivatevirtual

Implements FIX::SocketMonitor::Strategy.

Definition at line 79 of file SocketServer.cpp.

82  {

◆ onError() [1/2]

void FIX::ServerWrapper::onError ( SocketMonitor )
inlineprivatevirtual

Implements FIX::SocketMonitor::Strategy.

Definition at line 107 of file SocketServer.cpp.

◆ onError() [2/2]

void FIX::ServerWrapper::onError ( SocketMonitor monitor,
int  socket 
)
inlineprivatevirtual

Implements FIX::SocketMonitor::Strategy.

Definition at line 101 of file SocketServer.cpp.

◆ onEvent()

void FIX::ServerWrapper::onEvent ( SocketMonitor monitor,
int  socket 
)
inlineprivatevirtual

Implements FIX::SocketMonitor::Strategy.

Definition at line 83 of file SocketServer.cpp.

95 : m_monitor( timeout ) {}

◆ onTimeout()

void FIX::ServerWrapper::onTimeout ( SocketMonitor )
inlineprivatevirtual

Reimplemented from FIX::SocketMonitor::Strategy.

Definition at line 112 of file SocketServer.cpp.

◆ onWrite()

void FIX::ServerWrapper::onWrite ( SocketMonitor ,
int  socket 
)
inlineprivatevirtual

Implements FIX::SocketMonitor::Strategy.

Definition at line 96 of file SocketServer.cpp.

100 {

Member Data Documentation

◆ m_server

SocketServer& FIX::ServerWrapper::m_server
private

Definition at line 121 of file SocketServer.cpp.

◆ m_sockets

Sockets FIX::ServerWrapper::m_sockets
private

Definition at line 120 of file SocketServer.cpp.

◆ m_strategy

SocketServer::Strategy& FIX::ServerWrapper::m_strategy
private

Definition at line 122 of file SocketServer.cpp.


The documentation for this class was generated from the following file:

Generated on Wed Apr 29 2020 19:41:30 for QuickFIX by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2001