MCPcopy Create free account
hub / github.com/PABannier/bark.cpp / process_and_close_socket

Method process_and_close_socket

examples/server/httplib.h:6588–6601  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6586inline bool Server::is_valid() const { return true; }
6587
6588inline bool Server::process_and_close_socket(socket_t sock) {
6589 auto ret = detail::process_server_socket(
6590 svr_sock_, sock, keep_alive_max_count_, keep_alive_timeout_sec_,
6591 read_timeout_sec_, read_timeout_usec_, write_timeout_sec_,
6592 write_timeout_usec_,
6593 [this](Stream &strm, bool close_connection, bool &connection_closed) {
6594 return process_request(strm, close_connection, connection_closed,
6595 nullptr);
6596 });
6597
6598 detail::shutdown_socket(sock);
6599 detail::close_socket(sock);
6600 return ret;
6601}
6602
6603// HTTP client implementation
6604inline ClientImpl::ClientImpl(const std::string &host)

Callers

nothing calls this directly

Calls 7

process_server_socketFunction · 0.85
shutdown_socketFunction · 0.85
close_socketFunction · 0.85
ssl_newFunction · 0.85
ssl_deleteFunction · 0.85

Tested by

no test coverage detected