#ifndef NET_RPC_COMMUNICATOR_H #define NET_RPC_COMMUNICATOR_H #include namespace Hainan { class RpcRequest; class RpcCommunicator { private: boost::asio::io_service io_service; boost::asio::ip::tcp::socket socket; public: RpcCommunicator(std::string& host, int port); ~RpcCommunicator(); void AsyncWrite(boost::asio::buffer& buffer, boost::function handler); }; } #endif // NET_RPC_COMMUNICATOR_H