| 46 | } |
| 47 | |
| 48 | void EchoServer::onMessage(const TcpConnectionPtr& conn, |
| 49 | Buffer* buf, |
| 50 | Timestamp time) |
| 51 | { |
| 52 | string msg(buf->retrieveAllAsString()); |
| 53 | LOG_INFO << conn->name() << " echo " << msg.size() << " bytes at " << time.toString(); |
| 54 | conn->send(msg); |
| 55 | } |
| 56 |
nothing calls this directly
no test coverage detected