| | |
| | | |
| | | public: |
| | | static size_t remove_keys(int keys[], size_t length); |
| | | static size_t remove_keys_exclude(int keys[], size_t length); |
| | | |
| | | // bus header 编码为网络传输的字节 |
| | | static void * encode_bus_head(bus_head_t & bushead); |
| | |
| | | ShmModSocket(); |
| | | ~ShmModSocket(); |
| | | |
| | | int stop(); |
| | | /** |
| | | * 绑定端口到socket, 如果不绑定则系统自动分配一个 |
| | | * @return 0 成功, 其他值 失败的错误码 |
| | |
| | | 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); |
| | | |
| | | /** |
| | | * 订阅指定主题 |