1#ifndef Cpl_Io_Tcp_Win32_AsyncConnector_h_ 
    2#define Cpl_Io_Tcp_Win32_AsyncConnector_h_ 
   43                    const char* remoteHostName,
 
   44                    int         portNumToConnectTo );
 
This class defines the callback mechanism used for accepting incoming TCP connections.
Definition AsyncConnector.h:47
 
This abstract class defines the interface for establishing/requesting a SIMPLE socket connection,...
Definition AsyncConnector.h:41
 
This class implements the Asynchronous Connector.
Definition AsyncConnector.h:32
 
SOCKET m_fd
socket for the connection
Definition AsyncConnector.h:64
 
bool m_clientConnected
Track if the client is connected.
Definition AsyncConnector.h:79
 
void notifyConnected(SOCKET sock)
Helper method that is used to notify the client that the connection has been established.
 
struct addrinfo * m_remoteAddrPtr
Current address to try.
Definition AsyncConnector.h:70
 
~AsyncConnector()
Destructor.
 
int m_state
Connecting state.
Definition AsyncConnector.h:73
 
AsyncConnector()
Constructor.
 
Client * m_clientPtr
Client.
Definition AsyncConnector.h:67
 
void terminate() noexcept
See Cpl::Io::Tcp::AsyncConnector.
 
void nextAddress(int wsaLastError)
Helper method to try the 'next' address for the remote host.
 
bool establish(Client &client, const char *remoteHostName, int portNumToConnectTo)
See Cpl::Io::Tcp::AsyncConnector.
 
bool m_connectCalled
Track the 1st call to connect();.
Definition AsyncConnector.h:76
 
void notifyError(Client::Error_T error, int wsaLastError)
Helper method that is used to notify the client that the connection request failed.
 
void poll() noexcept
See Cpl::Io::Tcp::AsyncConnector.
 
The 'Cpl' namespace is the root name space for the Colony.
Definition Api16.h:20