wangzhengquan
2020-11-27 2d44fab94cdf6cf8a58e20e5dd68043340cbdb63
src/socket/net_mod_socket_wrapper.h
@@ -35,6 +35,7 @@
 * @return 0 成功, 其他值 失败的错误码
*/
int net_mod_socket_force_bind(void * _socket, int port);
/**
 * 发送信息
 * @port 发送给谁
@@ -84,6 +85,13 @@
  net_mod_recv_msg_t ** recv_arr, int *recv_arr_size) ;
/**
 * 启动bus
 *
 * @return 0 成功, 其他值 失败的错误码
*/
int  net_mod_socket_start_bus(void * _socket);
 /**
 * 向node_arr 中的所有网络节点发布消息
@@ -95,12 +103,6 @@
int net_mod_socket_pub(void *_sockt, net_node_t *node_arr, int node_arr_len, char *topic, int topic_size, void *content, int content_size);
/**
 * 启动bus
 *
 * @return 0 成功, 其他值 失败的错误码
*/
int  net_mod_socket_start_bus(void * _socket);
/**
 * 订阅指定主题
@@ -126,12 +128,10 @@
int  net_mod_socket_desub_nowait(void * _socket, void *topic, int size, int port);
/**
 * 获取soket端口号
 */
int net_mod_socket_get_key(void * _socket) ;
/**