Close the connection. * @return \c this if a connection was successfully established, a null * pointer otherwise. */
| 219 | * pointer otherwise. |
| 220 | */ |
| 221 | basic_socket_streambuf* close() |
| 222 | { |
| 223 | sync(); |
| 224 | socket().close(ec_); |
| 225 | if (!ec_) |
| 226 | init_buffers(); |
| 227 | return !ec_ ? this : 0; |
| 228 | } |
| 229 | |
| 230 | /// Get a reference to the underlying socket. |
| 231 | basic_socket<Protocol>& socket() |
no outgoing calls
no test coverage detected