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

Method onMessage

examples/ace/logging/client.cc:91–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89 }
90
91 void onMessage(const TcpConnectionPtr&,
92 const MessagePtr& message,
93 Timestamp)
94 {
95 // SHOULD NOT HAPPEN
96 LogRecord* logRecord = muduo::down_cast<LogRecord*>(message.get());
97 LOG_WARN << logRecord->DebugString();
98 }
99
100 void updateLogRecord(const StringPiece& message) REQUIRES(mutex_)
101 {

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected