Close the connection. * @return \c this if a connection was successfully established, a null * pointer otherwise. */
| 297 | * pointer otherwise. |
| 298 | */ |
| 299 | basic_socket_streambuf* close() |
| 300 | { |
| 301 | sync(); |
| 302 | socket().close(ec_); |
| 303 | if (!ec_) |
| 304 | init_buffers(); |
| 305 | return !ec_ ? this : 0; |
| 306 | } |
| 307 | |
| 308 | /// Get a reference to the underlying socket. |
| 309 | basic_socket<Protocol>& socket() |
no outgoing calls
no test coverage detected