From cc6bec3330c29cc29f54d3e3d919d510f0197641 Mon Sep 17 00:00:00 2001 From: wzq <wzq@localhost.localdomain> Date: 星期六, 22 八月 2020 19:35:42 +0800 Subject: [PATCH] update --- src/socket/include/shm_socket.h | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/socket/include/shm_socket.h b/src/socket/include/shm_socket.h index 4852b27..fd67d9c 100644 --- a/src/socket/include/shm_socket.h +++ b/src/socket/include/shm_socket.h @@ -29,6 +29,11 @@ }; +enum shm_socket_error_type_t { + SHM_SOCKET_ECONNFAILED = 1, + SHM_SOCKET_ETIMEOUT = 2 +}; + enum shm_connection_status_t { SHM_CONN_CLOSED=1, SHM_CONN_LISTEN=2, @@ -42,6 +47,8 @@ void * buf; } shm_msg_t; + + typedef struct shm_socket_t { @@ -61,6 +68,7 @@ +size_t shm_socket_remove_keys(int keys[], size_t length); shm_socket_t *shm_open_socket(shm_socket_type_t socket_type); -- Gitblit v1.8.0