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

Method onMessage

examples/fastcgi/fastcgi.h:25–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23 }
24
25 void onMessage(const muduo::net::TcpConnectionPtr& conn,
26 muduo::net::Buffer* buf,
27 muduo::Timestamp receiveTime)
28 {
29 parseRequest(buf);
30 if (gotRequest_)
31 {
32 cb_(conn, params_, &stdin_);
33 stdin_.retrieveAll();
34 paramsStream_.retrieveAll();
35 params_.clear();
36 gotRequest_ = false;
37 if (!keepConn_)
38 {
39 conn->shutdown();
40 }
41 }
42 }
43
44 static void respond(muduo::net::Buffer* response);
45

Callers

nothing calls this directly

Calls 3

retrieveAllMethod · 0.80
clearMethod · 0.80
shutdownMethod · 0.80

Tested by

no test coverage detected