void EchoServer::onConnection(const muduo::net::TcpConnectionPtr& conn)
{
// LOG_INFO << "EchoServer - ";
// << conn->peerAddress().toIpPort() << " -> "
// << conn->localAddress().toIpPort() << " is "
// << (conn->connected() ? "UP" : "DOWN");
{
// LOG_INFO << "EchoServer - ";
// << conn->peerAddress().toIpPort() << " -> "
// << conn->localAddress().toIpPort() << " is "
// << (conn->connected() ? "UP" : "DOWN");
}
必须在此函数中使用LOG_INFO 否则不能正确编译