| | |
| | | |
| | | }; |
| | | |
| | | |
| | | |
| | | |
| | | void *dgram_mod_open_socket(int mod); |
| | | void *dgram_mod_open_socket(); |
| | | |
| | | int dgram_mod_close_socket(void * _socket); |
| | | |
| | |
| | | int dgram_mod_sendto(void *_socket, const void *buf, const int size, const int port); |
| | | |
| | | int dgram_mod_recvfrom(void *_socket, void **buf, int *size, int *port); |
| | | |
| | | |
| | | int dgram_mod_sendandrecv(void * _socket, const void *send_buf, const int send_size, const int port, void **recv_buf, int *recv_size) ; |
| | | |
| | | int dgram_mod_get_socket_port(void * _socket) ; |
| | | |
| | | 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 |