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

Function process_server_socket_ssl

examples/server/httplib.h:8106–8118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8104
8105template <typename T>
8106inline bool process_server_socket_ssl(
8107 const std::atomic<socket_t> &svr_sock, SSL *ssl, socket_t sock,
8108 size_t keep_alive_max_count, time_t keep_alive_timeout_sec,
8109 time_t read_timeout_sec, time_t read_timeout_usec, time_t write_timeout_sec,
8110 time_t write_timeout_usec, T callback) {
8111 return process_server_socket_core(
8112 svr_sock, sock, keep_alive_max_count, keep_alive_timeout_sec,
8113 [&](bool close_connection, bool &connection_closed) {
8114 SSLSocketStream strm(sock, ssl, read_timeout_sec, read_timeout_usec,
8115 write_timeout_sec, write_timeout_usec);
8116 return callback(strm, close_connection, connection_closed);
8117 });
8118}
8119
8120template <typename T>
8121inline bool

Callers 1

Calls 1

Tested by

no test coverage detected