wangzhengquan
2020-07-25 8ec1d776751f62c43335d36c3427dc1ab2d84a61
src/socket/include/dgram_mod_socket.h
@@ -18,7 +18,7 @@
   
};
void *dgram_mod_open_socket(int mod);
void *dgram_mod_open_socket();
int dgram_mod_close_socket(void * _socket);
@@ -34,6 +34,19 @@
void dgram_mod_free(void *buf) ;
int start_bus(void * _socket);
/**
 * @port 总线端口
 */
int sub(void * _socket, void *topic, int size, int port);
/**
 * @port 总线端口
 */
int pub(void * _socket, void *topic, int topic_size, void *content, int content_size, int port);
#ifdef __cplusplus
}
#endif