Class template connector_impl<ConnectionSynch, Demultiplexer, asynch_synchronisation, SocketErrorPolicy, EventHandler>
boost::net::socket::connector_impl<ConnectionSynch, Demultiplexer, asynch_synchronisation, SocketErrorPolicy, EventHandler> — Asynchronous Socket Connector.
Synopsis
template<typename ConnectionSynch, typename Demultiplexer,
typename SocketErrorPolicy, typename EventHandler>
class connector_impl<ConnectionSynch, Demultiplexer, asynch_synchronisation, SocketErrorPolicy, EventHandler>
: : public boost::net::socket::impl::connector_handled< EventHandler >
{
public:
// types
typedef socket io_mechanism_t;
typedef Demultiplexer demultiplexer_type;
typedef asynch_synchronisation synchronisation_type;
typedef ConnectionSynch connection_synch_t;
typedef SocketErrorPolicy error_policy;
// construct/copy/destruct
connector_impl& operator=(const connector_impl &);
// public member functions
connector_impl(Demultiplexer &) ;
~connector_impl() ;
template<typename Endpoint> connector_error connect(const Endpoint &) ;
template<typename Endpoint> void threadConnector(socket_t, Endpoint) ;
// private member functions
void on_connect_complete(socket_t) ;
};
Description
Asynch connect is simulated with a blocking connect on a local thread.
connector_impl
construct/copy/destruct
connector_impl& operator=(const connector_impl & );
connector_impl
public member functions
connector_impl(Demultiplexer & demux) ;
~connector_impl() ;
template<typename Endpoint>
connector_error connect(const Endpoint & endpoint) ;
template<typename Endpoint>
void threadConnector(socket_t os_sock, Endpoint endpoint) ;
connector_impl
private member functions
void on_connect_complete(socket_t os_sock) ;