void onConnection(const TcpConnectionPtr& conn) { LOG_TRACE << conn->peerAddress().toString() << " -> " << conn->localAddress().toString() << " is " << (conn->connected() ? "UP" : "DOWN"); LOG_INFO << conn->getTcpInfoString(); // conn->send("hello\n"); }