提交 782ab2e2 编写于 作者: X xjqbest

add some doc

test=develop
上级 9b84e8e6
...@@ -121,12 +121,17 @@ class FleetWrapper { ...@@ -121,12 +121,17 @@ class FleetWrapper {
void StopServer(); void StopServer();
uint64_t RunServer(); uint64_t RunServer();
void GatherServers(const std::vector<uint64_t>& host_sign_list, int node_num); void GatherServers(const std::vector<uint64_t>& host_sign_list, int node_num);
// gather client ip
void GatherClients(const std::vector<uint64_t>& host_sign_list); void GatherClients(const std::vector<uint64_t>& host_sign_list);
// get client info
std::vector<uint64_t> GetClientsInfo(); std::vector<uint64_t> GetClientsInfo();
// create client to client connection
void CreateClient2ClientConnection(); void CreateClient2ClientConnection();
// register client to client communication
typedef std::function<int32_t(int, int, const std::string&)> MsgHandlerFunc; typedef std::function<int32_t(int, int, const std::string&)> MsgHandlerFunc;
int RegisterClientToClientMsgHandler(int msg_type, MsgHandlerFunc handler); int RegisterClientToClientMsgHandler(int msg_type, MsgHandlerFunc handler);
// send client to client message
std::future<int32_t> SendClientToClientMsg(int msg_type, int to_client_id, std::future<int32_t> SendClientToClientMsg(int msg_type, int to_client_id,
const std::string& msg); const std::string& msg);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册