| 41 | |
| 42 | private: |
| 43 | void onConnection(const TcpConnectionPtr& conn) |
| 44 | { |
| 45 | LOG_TRACE << conn->peerAddress().toIpPort() << " -> " |
| 46 | << conn->localAddress().toIpPort() << " is " |
| 47 | << (conn->connected() ? "UP" : "DOWN"); |
| 48 | conn->setTcpNoDelay(true); |
| 49 | if (conn->connected()) |
| 50 | { |
| 51 | connections_.increment(); |
| 52 | } |
| 53 | else |
| 54 | { |
| 55 | connections_.decrement(); |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | void onMessage(const TcpConnectionPtr& conn, Buffer* buf, Timestamp) |
| 60 | { |
nothing calls this directly
no test coverage detected