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. */
| 187 | * pointer otherwise. |
| 188 | */ |
| 189 | basic_socket_streambuf* connect(const endpoint_type& endpoint) |
| 190 | { |
| 191 | init_buffers(); |
| 192 | ec_ = boost::system::error_code(); |
| 193 | this->connect_to_endpoints(&endpoint, &endpoint + 1); |
| 194 | return !ec_ ? this : 0; |
| 195 | } |
| 196 | |
| 197 | /// Establish a connection. |
| 198 | /** |
nothing calls this directly
no test coverage detected