asio 0.1.5 | Main Page | Class Index | Member Index | Tutorial |
Public Types | |
typedef Service | service_type |
The type of the service that will be used to provide connect operations. | |
typedef service_type::impl_type | impl_type |
The native implementation type of the socket connector. | |
typedef service_type::demuxer_type | demuxer_type |
The demuxer type for this asynchronous type. | |
Public Member Functions | |
basic_socket_connector (demuxer_type &d) | |
Constructor. | |
template<typename Protocol> | basic_socket_connector (demuxer_type &d, const Protocol &protocol) |
Constructor. | |
~basic_socket_connector () | |
Destructor. | |
demuxer_type & | demuxer () |
Get the demuxer associated with the asynchronous object. | |
void | open () |
Open the connector. | |
template<typename Protocol> void | open (const Protocol &protocol) |
Open the connector to use a specified protocol. | |
void | close () |
Close the connector. | |
impl_type | impl () |
Get the underlying implementation in the native type. | |
template<typename Stream, typename Address> void | connect (Stream &peer_socket, const Address &peer_address) |
Connect a stream socket to the peer at the specified address. | |
template<typename Stream, typename Address, typename Error_Handler> void | connect (Stream &peer_socket, const Address &peer_address, Error_Handler error_handler) |
Connect a stream socket to the peer at the specified address. | |
template<typename Stream, typename Address, typename Handler> void | async_connect (Stream &peer_socket, const Address &peer_address, Handler handler) |
Start an asynchronous connect. | |
template<typename Stream, typename Address, typename Handler, typename Completion_Context> void | async_connect (Stream &peer_socket, const Address &peer_address, Handler handler, Completion_Context context) |
Start an asynchronous connect. | |
Private Attributes | |
service_type & | service_ |
The backend service implementation. | |
impl_type | impl_ |
The underlying native implementation. |
|
The type of the service that will be used to provide connect operations.
|
|
The native implementation type of the socket connector.
|
|
The demuxer type for this asynchronous type.
|
|
Constructor. Constructs the connector and opens it automatically.
|
|
Constructor. This constructor automatically opens the connector so that it will establish connections using the specified protocol.
|
|
Destructor.
|
|
Get the demuxer associated with the asynchronous object. This function may be used to obtain the demuxer object that the connector uses to deliver completions for asynchronous operations.
|
|
Open the connector. This function is used to open the connector so that it may be used to perform socket connect operations. Since the constructor opens the connector by default, you should only need to call this function if there has been a prior call to close().
|
|
Open the connector to use a specified protocol. This function is used to open the connector so that it may be used to perform socket connect operations. Since the constructor opens the connector by default, you should only need to call this function if there has been a prior call to close().
|
|
Close the connector. This function is used to close the connector. Any asynchronous connect operations will be cancelled immediately. A subsequent call to open() is required before the connector can again be used to again perform socket connect operations. |
|
Get the underlying implementation in the native type. This function may be used to obtain the underlying implementation of the socket connector. This is intended to allow access to native socket functionality that is not otherwise provided. |
|
Connect a stream socket to the peer at the specified address. This function is used to connect a stream socket to the specified remote address. The function call will block until the connection is successfully made or an error occurs.
|
|
Connect a stream socket to the peer at the specified address. This function is used to connect a stream socket to the specified remote address. The function call will block until the connection is successfully made or an error occurs.
|
|
Start an asynchronous connect. This function is used to asynchronously connect a stream socket to the specified remote address. The function call always returns immediately.
|
|
Start an asynchronous connect. This function is used to asynchronously connect a stream socket to the specified remote address. The function call always returns immediately.
|
|
The backend service implementation.
|
|
The underlying native implementation.
|