Classes | Public Member Functions | Private Attributes | List of all members
FIX::SocketConnector Class Reference

Connects sockets to remote ports and addresses. More...

#include <SocketConnector.h>

Collaboration diagram for FIX::SocketConnector:
Collaboration graph
[legend]

Classes

class  Strategy
 

Public Member Functions

 SocketConnector (int timeout=0)
 
int connect (const std::string &address, int port, bool noDelay, int sendBufSize, int rcvBufSize, const std::string &sourceAddress="", int sourcePort=0)
 
int connect (const std::string &address, int port, bool noDelay, int sendBufSize, int rcvBufSize, Strategy &)
 
void block (Strategy &strategy, bool poll=0, double timeout=0.0)
 
SocketMonitorgetMonitor ()
 

Private Attributes

SocketMonitor m_monitor
 

Detailed Description

Connects sockets to remote ports and addresses.

Definition at line 52 of file SocketConnector.h.

Constructor & Destructor Documentation

◆ SocketConnector()

FIX::SocketConnector::SocketConnector ( int  timeout = 0)

Definition at line 99 of file SocketConnector.cpp.

Member Function Documentation

◆ block()

void FIX::SocketConnector::block ( Strategy strategy,
bool  poll = 0,
double  timeout = 0.0 
)

Definition at line 131 of file SocketConnector.cpp.

◆ connect() [1/2]

int FIX::SocketConnector::connect ( const std::string &  address,
int  port,
bool  noDelay,
int  sendBufSize,
int  rcvBufSize,
const std::string &  sourceAddress = "",
int  sourcePort = 0 
)

Definition at line 102 of file SocketConnector.cpp.

109 {
110  int socket = connect( address, port, noDelay, sendBufSize, rcvBufSize, "", 0);
111  return socket;
112 }
113 
114 void SocketConnector::block( Strategy& strategy, bool poll, double timeout )
115 {
116  ConnectorWrapper wrapper( *this, strategy );
117  m_monitor.block( wrapper, poll, timeout );
118 }
119 }

◆ connect() [2/2]

int FIX::SocketConnector::connect ( const std::string &  address,
int  port,
bool  noDelay,
int  sendBufSize,
int  rcvBufSize,
Strategy strategy 
)

Definition at line 124 of file SocketConnector.cpp.

◆ getMonitor()

SocketMonitor& FIX::SocketConnector::getMonitor ( )
inline

Definition at line 82 of file SocketConnector.h.

Member Data Documentation

◆ m_monitor

SocketMonitor FIX::SocketConnector::m_monitor
private

Definition at line 85 of file SocketConnector.h.


The documentation for this class was generated from the following files:
FIX::SocketMonitor::block
void block(Strategy &strategy, bool poll=0, double timeout=0.0)
Definition: SocketMonitor.cpp:198
FIX::SocketConnector::connect
int connect(const std::string &address, int port, bool noDelay, int sendBufSize, int rcvBufSize, const std::string &sourceAddress="", int sourcePort=0)
Definition: SocketConnector.cpp:102
FIX::SocketConnector::m_monitor
SocketMonitor m_monitor
Definition: SocketConnector.h:85
FIX::SocketConnector::block
void block(Strategy &strategy, bool poll=0, double timeout=0.0)
Definition: SocketConnector.cpp:131

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