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

Method onAnswer

examples/protobuf/codec/server.cc:75–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73 }
74
75 void onAnswer(const muduo::net::TcpConnectionPtr& conn,
76 const AnswerPtr& message,
77 muduo::Timestamp)
78 {
79 LOG_INFO << "onAnswer: " << message->GetTypeName();
80 conn->shutdown();
81 }
82
83 TcpServer server_;
84 ProtobufDispatcher dispatcher_;

Callers

nothing calls this directly

Calls 1

shutdownMethod · 0.80

Tested by

no test coverage detected