src/socket/shm_mod_socket.h
@@ -47,6 +47,7 @@ ShmModSocket(); ~ShmModSocket(); int stop(); /** * 绑定端口到socket, 如果不绑定则系统自动分配一个 * @return 0 成功, 其他值 失败的错误码 @@ -87,8 +88,10 @@ const struct timespec *timeout = NULL, int flag = 0); int recvandsend(void **recvbuf, int *recvsize, int *key, recv_callback_fn callback, const struct timespec *timeout = NULL , int flag = 0); /** * */ int recvandsend( recvandsend_callback_fn callback, const struct timespec *timeout = NULL , int flag = 0, void * user_data = NULL); /** * 订阅指定主题