wangzhengquan
2021-01-07 14f5cae9c36cf9c91434fcde684d54e8a56c8f84
src/socket/net_mod_socket_wrapper.h
@@ -39,12 +39,12 @@
int net_mod_socket_force_bind(void * _socket, int key);
/**
 * 发送信息
 * 发送信息,发送完成才返回
 * @key 发送给谁
 * @return 0 成功, 其他值 失败的错误码
 */
int net_mod_socket_sendto(void *_socket, const void *buf, const int size, const int key);
// 发送信息超时返回。 @sec 秒 , @nsec 纳秒
// 发送信息, 超时返回。 @sec 秒 , @nsec 纳秒
int net_mod_socket_sendto_timeout(void *_socket, const void *buf, const int size, const int key, int sec, int nsec);
// 发送信息立刻返回。
int net_mod_socket_sendto_nowait(void *_socket, const void *buf, const int size, const int key);
@@ -84,13 +84,6 @@
  net_mod_recv_msg_t ** recv_arr, int *recv_arr_size) ;
/**
 * 启动bus
 *
 * @return 0 成功, 其他值 失败的错误码
*/
int  net_mod_socket_start_bus(void * _socket);
 /**
 * 向node_arr 中的所有网络节点发布消息
@@ -112,10 +105,10 @@
 * @size 主题长度
 * @key 总线端口
 */
int  net_mod_socket_sub(void * _socket, void *topic, int size, int key);
int  net_mod_socket_sub(void * _socket, void *topic, int size);
// 超时返回。 @sec 秒 , @nsec 纳秒
int  net_mod_socket_sub_timeout(void * _socket, void *topic, int size, int key, int sec, int nsec);
int  net_mod_socket_sub_nowait(void * _socket, void *topic, int size, int key);
int  net_mod_socket_sub_timeout(void * _socket, void *topic, int size,  int sec, int nsec);
int  net_mod_socket_sub_nowait(void * _socket, void *topic, int size);
/**
@@ -124,10 +117,10 @@
 * @size 主题长度
 * @key 总线端口
 */
int  net_mod_socket_desub(void * _socket, void *topic, int size, int key);
int  net_mod_socket_desub(void * _socket, void *topic, int size);
// 超时返回。 @sec 秒 , @nsec 纳秒
int  net_mod_socket_desub_timeout(void * _socket, void *topic, int size, int key, int sec, int nsec);
int  net_mod_socket_desub_nowait(void * _socket, void *topic, int size, int key);
int  net_mod_socket_desub_timeout(void * _socket, void *topic, int size, int sec, int nsec);
int  net_mod_socket_desub_nowait(void * _socket, void *topic, int size);
/**