From 5f7b0d34f54fee057814c3f146c871c474d53b75 Mon Sep 17 00:00:00 2001 From: wangzhengquan <wangzhengquan85@126.com> Date: 星期六, 01 八月 2020 16:30:39 +0800 Subject: [PATCH] fix alloc_key --- src/socket/include/shm_socket.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/socket/include/shm_socket.h b/src/socket/include/shm_socket.h index 7025f9e..0ca4cfd 100644 --- a/src/socket/include/shm_socket.h +++ b/src/socket/include/shm_socket.h @@ -44,6 +44,7 @@ shm_socket_type_t socket_type; // 鏈湴port int port; + bool force_bind; shm_connection_status_t status; SHMQueue<shm_msg_t> *queue; SHMQueue<shm_msg_t> *remoteQueue; @@ -65,6 +66,9 @@ int shm_socket_bind(shm_socket_t * socket, int port) ; +int shm_socket_force_bind(shm_socket_t * socket, int port) ; + + int shm_listen(shm_socket_t * socket) ; shm_socket_t* shm_accept(shm_socket_t* socket); -- Gitblit v1.8.0