MCPcopy Create free account
hub / github.com/Shangyizhou/A-Tiny-Network-Library / main

Function main

example/echoServerAsync.cc:77–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75
76
77int main(int argc, char* argv[])
78{
79 setLogging(argv[0]);
80
81 LOG_INFO << "pid = " << getpid();
82 EventLoop loop;
83 InetAddress addr(8080);
84 EchoServer server(&loop, addr, "EchoServer");
85 server.start();
86 loop.loop();
87
88 return 0;
89}

Callers

nothing calls this directly

Calls 3

setLoggingFunction · 0.85
loopMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected