| | |
| | | * |
| | | * @return 0 成功, 其他值 失败的错误码 |
| | | */ |
| | | typedef int (*tfn_net_mod_socket_start_bus)(void * _socket); |
| | | //typedef int (*tfn_net_mod_socket_start_bus)(void * _socket); |
| | | |
| | | |
| | | /** |
| | |
| | | * @size 主题长度 |
| | | * @key 总线端口 |
| | | */ |
| | | typedef int (*tfn_net_mod_socket_sub)(void * _socket, void *topic, int size, int key); |
| | | typedef int (*tfn_net_mod_socket_sub)(void * _socket, void *topic, int size); |
| | | // 超时返回。 @sec 秒 , @nsec 纳秒 |
| | | typedef int (*tfn_net_mod_socket_sub_timeout)(void * _socket, void *topic, int size, int key, int sec, int nsec); |
| | | typedef int (*tfn_net_mod_socket_sub_nowait)(void * _socket, void *topic, int size, int key); |
| | | typedef int (*tfn_net_mod_socket_sub_timeout)(void * _socket, void *topic, int size, int sec, int nsec); |
| | | typedef int (*tfn_net_mod_socket_sub_nowait)(void * _socket, void *topic, int size); |
| | | |
| | | |
| | | /** |
| | |
| | | * @size 主题长度 |
| | | * @key 总线端口 |
| | | */ |
| | | typedef int (*tfn_net_mod_socket_desub)(void * _socket, void *topic, int size, int key); |
| | | typedef int (*tfn_net_mod_socket_desub)(void * _socket, void *topic, int size); |
| | | // 超时返回。 @sec 秒 , @nsec 纳秒 |
| | | typedef int (*tfn_net_mod_socket_desub_timeout)(void * _socket, void *topic, int size, int key, int sec, int nsec); |
| | | typedef int (*tfn_net_mod_socket_desub_nowait)(void * _socket, void *topic, int size, int key); |
| | | typedef int (*tfn_net_mod_socket_desub_timeout)(void * _socket, void *topic, int size, int sec, int nsec); |
| | | typedef int (*tfn_net_mod_socket_desub_nowait)(void * _socket, void *topic, int size); |
| | | |
| | | |
| | | /** |
| | |
| | | */ |
| | | typedef int(*tfn_shm_mod_socket_remove_keys) (int*, int); |
| | | |
| | | |
| | | /** |
| | | * 创建 |
| | | */ |
| | |
| | | */ |
| | | typedef int (*tfn_net_mod_server_socket_start)(void *_sockt); |
| | | |
| | | /** |
| | | * bus创建 |
| | | */ |
| | | typedef void *(*tfn_bus_server_socket_wrapper_open)() ; |
| | | |
| | | /** |
| | | * bus关闭 |
| | | */ |
| | | typedef void (*tfn_bus_server_socket_wrapper_close)(void *_sockt) ; |
| | | |
| | | /** |
| | | * bus启动 |
| | | */ |
| | | typedef int (*tfn_bus_server_socket_wrapper_start_bus)(void *_sockt); |
| | | |
| | | #ifdef __cplusplus |
| | | } |
| | | #endif |