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

Method service_main

lib_acl_cpp/src/master/master_aio.cpp:227–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225}
226
227void master_aio::service_main(ACL_SOCKET fd, void* ctx)
228{
229 master_aio* ma = (master_aio *) ctx;
230 acl_assert(ma->handle_);
231 acl_assert(ma);
232
233 aio_socket_stream* stream = NEW aio_socket_stream(ma->handle_, fd);
234
235 aio_close_callback* callback = NEW aio_close_callback(stream);
236 stream->add_close_callback(callback);
237
238 ma->on_accept(stream);
239}
240
241void master_aio::service_on_listen(void* ctx, ACL_VSTREAM *sstream)
242{

Callers

nothing calls this directly

Calls 4

add_close_callbackMethod · 0.80
aio_close_callbackClass · 0.70
aio_socket_streamClass · 0.50
on_acceptMethod · 0.45

Tested by

no test coverage detected