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

Function process_server_socket_ssl

dependencies/httplib/httplib.h:7125–7137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7123
7124template <typename T>
7125inline bool process_server_socket_ssl(
7126 const std::atomic<socket_t> &svr_sock, SSL *ssl, socket_t sock,
7127 size_t keep_alive_max_count, time_t keep_alive_timeout_sec,
7128 time_t read_timeout_sec, time_t read_timeout_usec, time_t write_timeout_sec,
7129 time_t write_timeout_usec, T callback) {
7130 return process_server_socket_core(
7131 svr_sock, sock, keep_alive_max_count, keep_alive_timeout_sec,
7132 [&](bool close_connection, bool &connection_closed) {
7133 SSLSocketStream strm(sock, ssl, read_timeout_sec, read_timeout_usec,
7134 write_timeout_sec, write_timeout_usec);
7135 return callback(strm, close_connection, connection_closed);
7136 });
7137}
7138
7139template <typename T>
7140inline bool

Callers 1

Calls 1

Tested by

no test coverage detected