![]() |
![]() |
|
Index
Source Files
Annotated Class List
Alphabetical Class List
Class Hierarchy
Graphical Class Hierarchy
|
||
![]() |
![]() |
#include <SocketConnector.h>
Collaboration diagram for FIX::SocketConnector:

Public Member Functions | |
| SocketConnector (int timeout=0) | |
| int | connect (const std::string &address, int port, bool noDelay) |
| int | connect (const std::string &address, int port, bool noDelay, Strategy &) |
| void | block (Strategy &strategy, bool poll=0) |
| SocketMonitor & | getMonitor () |
Private Attributes | |
| SocketMonitor | m_monitor |
Definition at line 35 of file SocketConnector.h.
|
|
Definition at line 97 of file SocketConnector.cpp.
00098 : m_monitor( timeout ) {} |
|
||||||||||||
|
Definition at line 127 of file SocketConnector.cpp. References FIX::SocketMonitor::block(), m_monitor, QF_STACK_POP, and QF_STACK_PUSH. Referenced by FIX::SocketInitiator::onPoll(), and FIX::SocketInitiator::onStart().
00128 { QF_STACK_PUSH(SocketConnector::block)
00129
00130 ConnectorWrapper wrapper( *this, strategy );
00131 m_monitor.block( wrapper, poll );
00132
00133 QF_STACK_POP
00134 }
|
|
||||||||||||||||||||
|
Definition at line 117 of file SocketConnector.cpp. References connect(), QF_STACK_POP, and QF_STACK_PUSH.
00119 { QF_STACK_PUSH(SocketConnector::connect)
00120
00121 int socket = connect( address, port, noDelay );
00122 return socket;
00123
00124 QF_STACK_POP
00125 }
|
|
||||||||||||||||
|
Definition at line 100 of file SocketConnector.cpp. References FIX::SocketMonitor::addConnect(), m_monitor, QF_STACK_POP, QF_STACK_PUSH, FIX::socket_connect(), FIX::socket_createConnector(), and FIX::socket_setsockopt(). Referenced by connect(), and FIX::SocketInitiator::doConnect().
00101 { QF_STACK_PUSH(SocketConnector::connect)
00102
00103 int socket = socket_createConnector();
00104
00105 if ( socket != -1 )
00106 {
00107 if( noDelay )
00108 socket_setsockopt( socket, TCP_NODELAY );
00109 m_monitor.addConnect( socket );
00110 socket_connect( socket, address.c_str(), port );
00111 }
00112 return socket;
00113
00114 QF_STACK_POP
00115 }
|
|
|
Definition at line 45 of file SocketConnector.h. References m_monitor. Referenced by FIX::SocketInitiator::doConnect(), FIX::ConnectorWrapper::onError(), and FIX::SocketConnection::read().
00045 { return m_monitor; }
|
|
|
Definition at line 48 of file SocketConnector.h. Referenced by block(), connect(), and getMonitor(). |
1.3.6-20040222 written by Dimitri van Heesch,
© 1997-2001