MCPcopy Create free account
hub / github.com/Tablecruncher/tablecruncher / process_server_socket_ssl

Function process_server_socket_ssl

external/httplib.h:8889–8901  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8887
8888template <typename T>
8889inline bool process_server_socket_ssl(
8890 const std::atomic<socket_t> &svr_sock, SSL *ssl, socket_t sock,
8891 size_t keep_alive_max_count, time_t keep_alive_timeout_sec,
8892 time_t read_timeout_sec, time_t read_timeout_usec, time_t write_timeout_sec,
8893 time_t write_timeout_usec, T callback) {
8894 return process_server_socket_core(
8895 svr_sock, sock, keep_alive_max_count, keep_alive_timeout_sec,
8896 [&](bool close_connection, bool &connection_closed) {
8897 SSLSocketStream strm(sock, ssl, read_timeout_sec, read_timeout_usec,
8898 write_timeout_sec, write_timeout_usec);
8899 return callback(strm, close_connection, connection_closed);
8900 });
8901}
8902
8903template <typename T>
8904inline bool

Callers 1

Calls 1

Tested by

no test coverage detected