MCPcopy Create free account
hub / github.com/Qihoo360/evpp / LengthHeaderCodec

Method LengthHeaderCodec

examples/chatroom/simple/codec.h:11–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9 const std::string& message)> StringMessageCallback;
10
11 explicit LengthHeaderCodec(const StringMessageCallback& cb)
12 : messageCallback_(cb) {}
13
14 void OnMessage(const evpp::TCPConnPtr& conn,
15 evpp::Buffer* buf) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected