| | |
| | | |
| | | int bind_proc_id(char *buf, int len); |
| | | int reg(void *pData, int len, void **buf, int *size, const int timeout_ms, int flag); |
| | | /** |
| | | * 发送信息 |
| | | * @key 发送给谁 |
| | | * @flag BUS_TIMEOUT_FLAG BUS_NOWAIT_FLAG |
| | | * @return 0 成功, 其他值 失败的错误码 |
| | | */ |
| | | |
| | | int sendto(const void *buf, const int size, const int key, const struct timespec *timeout = NULL, int flag = 0); |
| | | |
| | | |
| | | int sendto(const void *buf, const int size, const int key, const struct timespec *timeout = NULL, int flag = 0, int reset = 0, int data_set = 0); |
| | | |
| | | /** |
| | | * 接收信息 |
| | | * @key 从谁哪里收到的信息 |
| | | * @return 0 成功, 其他值 失败的错误码 |
| | | */ |
| | | int recvfrom(void **buf, int *size, int *key, const struct timespec *timeout = NULL, int flag = 0); |
| | | int recvfrom(void **buf, int *size, int *key, const struct timespec *timeout = NULL, int flag = 0, int reset = 0, int data_set = 0); |
| | | |
| | | /** |
| | | * 发送请求信息并等待接收应答 |
| | | * @key 发送给谁 |