MCPcopy Create free account
hub / github.com/CalcProgrammer1/OpenRGB / process_and_close_socket

Method process_and_close_socket

dependencies/httplib/httplib.h:5754–5767  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5752inline bool Server::is_valid() const { return true; }
5753
5754inline bool Server::process_and_close_socket(socket_t sock) {
5755 auto ret = detail::process_server_socket(
5756 svr_sock_, sock, keep_alive_max_count_, keep_alive_timeout_sec_,
5757 read_timeout_sec_, read_timeout_usec_, write_timeout_sec_,
5758 write_timeout_usec_,
5759 [this](Stream &strm, bool close_connection, bool &connection_closed) {
5760 return process_request(strm, close_connection, connection_closed,
5761 nullptr);
5762 });
5763
5764 detail::shutdown_socket(sock);
5765 detail::close_socket(sock);
5766 return ret;
5767}
5768
5769// HTTP client implementation
5770inline 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