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

Method onUnknownMessage

examples/protobuf/codec/server.cc:51–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49 }
50
51 void onUnknownMessage(const TcpConnectionPtr& conn,
52 const MessagePtr& message,
53 Timestamp)
54 {
55 LOG_INFO << "onUnknownMessage: " << message->GetTypeName();
56 conn->shutdown();
57 }
58
59 void onQuery(const muduo::net::TcpConnectionPtr& conn,
60 const QueryPtr& message,

Callers

nothing calls this directly

Calls 1

shutdownMethod · 0.80

Tested by

no test coverage detected