wangzhengquan
2020-12-01 abc89da58e0a321fc4d27d0ca70620cd14141d3a
src/socket/net_mod_socket_wrapper.h
@@ -12,6 +12,8 @@
   NetModSocket *sockt;
};
/**
 * 创建
 */
@@ -101,7 +103,10 @@
 * @return 成功发布的节点的个数
 */
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);
int net_mod_socket_pub_timeout(void *_sockt, net_node_t *node_arr, int node_arr_len, char *topic, int topic_size, void *content, int content_size, int timeout);
/*
 * @msec 毫秒(千分之一秒)
 */
int net_mod_socket_pub_timeout(void *_sockt, net_node_t *node_arr, int node_arr_len, char *topic, int topic_size, void *content, int content_size, int msec);
int net_mod_socket_pub_nowait(void *_sockt, net_node_t *node_arr, int node_arr_len, char *topic, int topic_size, void *content, int content_size);
/**
@@ -147,6 +152,17 @@
 */
void net_mod_socket_free(void *buf) ;
/**
 * 删除key对应的共享队列,并在bus里删除该key的订阅
 */
int shm_mod_socket_remove_key(int key);
/**
 * 批量删除key对应的共享队列,并在bus里删除该key的订阅
 */
int shm_mod_socket_remove_keys(int keys[], int length);
#ifdef __cplusplus
}
#endif