From 01e202b60cc8aceb65fd6c82949e2a2b08142f8c Mon Sep 17 00:00:00 2001 From: wangzhengquan <wangzhengquan85@126.com> Date: 星期一, 18 一月 2021 10:44:50 +0800 Subject: [PATCH] ADD EBUS_NET --- 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