From aa2f3b2a9968bb4928463bdae05fb026d16b60bb Mon Sep 17 00:00:00 2001 From: wangzhengquan <wangzhengquan85@126.com> Date: 星期五, 04 十二月 2020 19:07:01 +0800 Subject: [PATCH] 固定bus key --- src/socket/net_mod_server_socket.h | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/src/socket/net_mod_server_socket.h b/src/socket/net_mod_server_socket.h index 40219e1..3f80931 100644 --- a/src/socket/net_mod_server_socket.h +++ b/src/socket/net_mod_server_socket.h @@ -28,13 +28,18 @@ private: int listenfd; + int port; ShmModSocket shmModSocket; pool pool; void *buf; void *topic_buf; + char *response_buf; + size_t max_buf; size_t max_topic_buf; + size_t max_response_buf; + void init_pool(int listenfd); void add_client(int connfd); @@ -47,8 +52,9 @@ /* * 鍚姩 server + * @return 0 success, 鍏朵粬 failture */ - void start(); + int start(); ~NetModServerSocket(); }; -- Gitblit v1.8.0