MCPcopy Create free account
hub / github.com/acl-dev/acl / thread_on_read

Method thread_on_read

lib_acl_cpp/samples/ssl/https_server/master_service.cpp:100–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100bool master_service::thread_on_read(acl::socket_stream* conn)
101{
102 http_servlet* servlet = (http_servlet*) conn->get_ctx();
103 if (servlet == NULL) {
104 logger_fatal("servlet null!");
105 }
106
107 if (conf_ == NULL) {
108 return servlet->doRun("127.0.0.1:11211", conn);
109 }
110
111 acl::sslbase_io* ssl = setup_ssl(*conn, *conf_);
112 if (ssl == NULL) {
113 return false;
114 }
115
116 return servlet->doRun("127.0.0.1:11211", conn);
117}
118
119bool master_service::thread_on_accept(acl::socket_stream* conn)
120{

Callers

nothing calls this directly

Calls 3

setup_sslFunction · 0.70
get_ctxMethod · 0.45
doRunMethod · 0.45

Tested by

no test coverage detected