MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / start

Method start

Examples/ApiServer/ApiServer.cpp:43–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41 int32_t port = 8091;
42
43 Result start(AsyncEventLoop& loop)
44 {
45 SC_TRY(server.init(Span<Connection>(connections)));
46 SC_TRY(router.init(routes));
47 SC_TRY(server.start(loop, interface.view(), static_cast<uint16_t>(port)));
48 server.onRequest.bind<ApiServerExample, &ApiServerExample::onRequest>(*this);
49 return Result(true);
50 }
51
52 void onRequest(HttpConnection& connection)
53 {

Callers 6

saneMainFunction · 0.45
runAwaitThreadWakeUpFunction · 0.45
runAwaitCallbackBridgeFunction · 0.45
receiveEchoBodyMethod · 0.45
saneMainFunction · 0.45
saneMainFunction · 0.45

Calls 3

ResultClass · 0.50
initMethod · 0.45
viewMethod · 0.45

Tested by

no test coverage detected