| 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 |
nothing calls this directly
no test coverage detected