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

Method onMessage

examples/netty/echo/server.cc:50–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48 }
49
50 void onMessage(const TcpConnectionPtr& conn, Buffer* buf, Timestamp)
51 {
52 size_t len = buf->readableBytes();
53 transferred_.addAndGet(len);
54 receivedMessages_.incrementAndGet();
55 conn->send(buf);
56 }
57
58 void printThroughput()
59 {

Callers

nothing calls this directly

Calls 4

readableBytesMethod · 0.80
addAndGetMethod · 0.80
incrementAndGetMethod · 0.80
sendMethod · 0.45

Tested by

no test coverage detected