| | |
| | | static tfn_socket_buf_free fn_socket_buf_free = NULL; |
| | | static tfn_socket_port fn_socket_port = NULL; |
| | | |
| | | // dgram mode socket |
| | | static tfn_dgram_socket_open fn_dgram_socket_open = NULL; |
| | | static tfn_dgram_socket_close fn_dgram_socket_close = NULL; |
| | | static tfn_dgram_socket_bind fn_dgram_socket_bind = NULL; |
| | | static tfn_dgram_socket_force_bind fn_dgram_socket_force_bind = NULL; |
| | | static tfn_dgram_socket_sendto fn_dgram_socket_sendto = NULL; |
| | | static tfn_dgram_socket_recvfrom fn_dgram_socket_recvfrom = NULL; |
| | | static tfn_dgram_socket_sendandrecv fn_dgram_socket_sendandrecv = NULL; |
| | | static tfn_dgram_socket_start_bus fn_dgram_socket_start_bus = NULL; |
| | | static tfn_dgram_socket_sub fn_dgram_socket_sub = NULL; |
| | | static tfn_dgram_socket_pub fn_dgram_socket_pub = NULL; |
| | | static tfn_dgram_socket_port fn_dgram_socket_port = NULL; |
| | | static tfn_dgram_socket_free fn_dgram_socket_free = NULL; |
| | | |
| | | ////////////////////////////////////////////////////////////////////// |
| | | |
| | | // labels |
| | |
| | | const static char l_socket_free[] = "mod_free"; |
| | | const static char l_socket_port[] = "mod_get_socket_port"; |
| | | |
| | | // dgram mode socket |
| | | const static char l_dgram_socket_open[] = "dgram_mod_open_socket"; |
| | | const static char l_dgram_socket_close[] = "dgram_mod_close_socket"; |
| | | const static char l_dgram_socket_bind[] = "dgram_mod_bind"; |
| | | const static char l_dgram_socket_force_bind[] = "dgram_mod_force_bind"; |
| | | const static char l_dgram_socket_sendto[] = "dgram_mod_sendto"; |
| | | const static char l_dgram_socket_recvfrom[] = "dgram_mod_recvfrom"; |
| | | const static char l_dgram_socket_sendandrecv[] = "dgram_mod_sendandrecv"; |
| | | const static char l_dgram_socket_start_bus[] = "dgram_mod_start_bus"; |
| | | const static char l_dgram_socket_sub[] = "dgram_mod_sub"; |
| | | const static char l_dgram_socket_pub[] = "dgram_mod_pub"; |
| | | const static char l_dgram_socket_port[] = "dgram_mod_get_port"; |
| | | const static char l_dgram_socket_free[] = "dgram_mod_free"; |
| | | |
| | | ////////////////////////////////////////////////////////////////////// |
| | | |
| | |
| | | void wrap_fn_socket_buf_free(hcsoftbus lib, void *buf); |
| | | int wrap_fn_socket_port(hcsoftbus lib, void *s); |
| | | |
| | | |
| | | ///////////////////////////////////////////////////////// |
| | | // dgram socket mode |
| | | void *wrap_fn_dgram_socket_open(hcsoftbus lib); |
| | | int wrap_fn_dgram_socket_close(hcsoftbus lib, void *s); |
| | | int wrap_fn_dgram_socket_bind(hcsoftbus lib, void *s, int port); |
| | | int wrap_fn_dgram_socket_force_bind(hcsoftbus lib, void *s, int port); |
| | | int wrap_fn_dgram_socket_sendto(hcsoftbus lib, void *s, const void *buf, const int size, const int port); |
| | | int wrap_fn_dgram_socket_recvfrom(hcsoftbus lib, void *s, void **buf, int *size, int *port); |
| | | int wrap_fn_dgram_socket_sendandrecv(hcsoftbus lib, void *s, const void *sbuf, const int ssize, const int port, void **rbuf, int *rsize); |
| | | int wrap_fn_dgram_socket_start_bus(hcsoftbus lib, void *s); |
| | | int wrap_fn_dgram_socket_sub(hcsoftbus lib, void *s, void *topic, int size, int port); |
| | | int wrap_fn_dgram_socket_pub(hcsoftbus lib, void *s, void *topic, int tsize, void *content, int csize, int port); |
| | | int wrap_fn_dgram_socket_port(hcsoftbus lib, void *s); |
| | | void wrap_fn_dgram_socket_free(hcsoftbus lib, void *buf); |
| | | |
| | | #ifdef __cplusplus |
| | | } |