MCPcopy Create free account
hub / github.com/boostorg/asio / close

Method close

include/boost/asio/basic_socket_streambuf.hpp:221–228  ·  view source on GitHub ↗

Close the connection. * @return \c this if a connection was successfully established, a null * pointer otherwise. */

Source from the content-addressed store, hash-verified

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()

Callers 2

connect_to_endpointsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected