...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Connect the stream to the specified endpoint.
void connect( endpoint_type const& ep);
This function is used to connect the underlying socket to the specified remote endpoint. The function call will block until the connection is successfully made or an error occurs. The underlying socket is automatically opened if needed. An automatically opened socket is not returned to the closed state upon failure.
Name |
Description |
---|---|
|
The remote endpoint to connect to. |
Type |
Thrown On |
---|---|
|
Thrown on failure. |