Establish a connection. * This function establishes a connection to the specified endpoint. * * @return \c this if a connection was successfully established, a null * pointer otherwise. */
| 258 | * pointer otherwise. |
| 259 | */ |
| 260 | basic_socket_streambuf* connect(const endpoint_type& endpoint) |
| 261 | { |
| 262 | init_buffers(); |
| 263 | ec_ = asio::error_code(); |
| 264 | this->connect_to_endpoints(&endpoint, &endpoint + 1); |
| 265 | return !ec_ ? this : 0; |
| 266 | } |
| 267 | |
| 268 | #if defined(GENERATING_DOCUMENTATION) |
| 269 | /// Establish a connection. |
nothing calls this directly
no test coverage detected