MCPcopy Create free account
hub / github.com/alibaba/async_simple / close

Method close

demo_example/smtp/smtp_client.cpp:330–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328 }
329
330 void close() {
331 asio::error_code ignore_ec;
332 if constexpr (IS_SSL) {
333#ifdef ENABLE_SSL
334 ssl_socket_->shutdown(ignore_ec);
335#endif
336 }
337
338 socket_.shutdown(asio::ip::tcp::socket::shutdown_both, ignore_ec);
339 socket_.close(ignore_ec);
340 }
341
342private:
343 std::string get_separator() {

Callers 8

sessionFunction · 0.45
mainFunction · 0.45
sessionFunction · 0.45
start_serverFunction · 0.45
startFunction · 0.45
~block_connectionMethod · 0.45
~connectionMethod · 0.45
gen_fileFunction · 0.45

Calls 1

shutdownMethod · 0.45

Tested by

no test coverage detected