void TcpClient::Connect(const std::string& ip, const std::string& port) { GetIoService().post(std::bind(&TcpClient::RealConnect , this , ip , port )) ; }
void Server::Stop() { GetIoService().stop(); acceptor_.close(); }