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

Method onConnection

examples/protobuf/codec/server.cc:44–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42
43 private:
44 void onConnection(const TcpConnectionPtr& conn)
45 {
46 LOG_INFO << conn->peerAddress().toIpPort() << " -> "
47 << conn->localAddress().toIpPort() << " is "
48 << (conn->connected() ? "UP" : "DOWN");
49 }
50
51 void onUnknownMessage(const TcpConnectionPtr& conn,
52 const MessagePtr& message,

Callers

nothing calls this directly

Calls 2

toIpPortMethod · 0.45
connectedMethod · 0.45

Tested by

no test coverage detected