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

Method onBackendMessage

examples/multiplexer/multiplexer.cc:257–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255 }
256
257 void onBackendMessage(const TcpConnectionPtr& conn, Buffer* buf, Timestamp)
258 {
259 size_t len = buf->readableBytes();
260 transferred_.addAndGet(len);
261 receivedMessages_.incrementAndGet();
262 sendToClient(buf);
263 }
264
265 void printStatistics()
266 {

Callers

nothing calls this directly

Calls 3

readableBytesMethod · 0.80
addAndGetMethod · 0.80
incrementAndGetMethod · 0.80

Tested by

no test coverage detected