MCPcopy Create free account
hub / github.com/boostorg/beast / do_close

Method do_close

example/advanced/server/advanced_server.cpp:476–484  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

474 }
475
476 void
477 do_close()
478 {
479 // Send a TCP shutdown
480 beast::error_code ec;
481 stream_.socket().shutdown(tcp::socket::shutdown_send, ec);
482
483 // At this point the connection is closed gracefully
484 }
485};
486
487//------------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 1

shutdownMethod · 0.80

Tested by

no test coverage detected