MCPcopy Create free account
hub / github.com/chenshuo/muduo / onConnection

Method onConnection

examples/sudoku/server_basic.cc:37–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35
36 private:
37 void onConnection(const TcpConnectionPtr& conn)
38 {
39 LOG_TRACE << conn->peerAddress().toIpPort() << " -> "
40 << conn->localAddress().toIpPort() << " is "
41 << (conn->connected() ? "UP" : "DOWN");
42 }
43
44 void onMessage(const TcpConnectionPtr& conn, Buffer* buf, Timestamp)
45 {

Callers

nothing calls this directly

Calls 2

toIpPortMethod · 0.45
connectedMethod · 0.45

Tested by

no test coverage detected