void onMessage(const TcpConnectionPtr& pTcpConn, Buffer* buffer, TimeStamp reveiveTime) { printf("onMessage(): tid=%d received %zd bytes from connection [%s] at %s \n", CurrentThread::GetTid() , buffer->ReadableBytes() , pTcpConn->GetName().c_str() , reveiveTime.ToFormattedString().c_str()); printf("onMessage(): [%s]\n", buffer->RetrieveAsString().c_str()); }