void onMessage(const TcpConnectionPtr &conn) { string s(conn->receiveString()); cout<<"recv string"<<s; conn->sendString(s); }