| | |
| | | NetModSocket *sockt; |
| | | }; |
| | | |
| | | |
| | | |
| | | /** |
| | | * 创建 |
| | | */ |
| | |
| | | * @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); |
| | | 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); |
| | | |
| | | /** |
| | | * 订阅指定主题 |
| | |
| | | */ |
| | | 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 |