From d6a27f15acd08e99841595cece2b3e3e8045491a Mon Sep 17 00:00:00 2001 From: wangzhengquan <wangzhengquan85@126.com> Date: 星期二, 13 十月 2020 18:15:55 +0800 Subject: [PATCH] update --- src/socket/net_mod_server_socket.h | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/socket/net_mod_server_socket.h b/src/socket/net_mod_server_socket.h index c79837b..4ec5b90 100644 --- a/src/socket/net_mod_server_socket.h +++ b/src/socket/net_mod_server_socket.h @@ -23,7 +23,7 @@ int nready; /* Number of ready descriptors from select */ int maxi; /* Highwater index into client array */ int clientfd[FD_SETSIZE]; /* Set of active descriptors */ - rio_t clientrio[FD_SETSIZE]; /* Set of active read buffers */ + // rio_t clientrio[FD_SETSIZE]; /* Set of active read buffers */ } ; private: @@ -31,10 +31,15 @@ ShmModSocket shmModSocket; pool pool; + void *buf; + void *topic_buf; + size_t max_buf; + size_t max_topic_buf; + void init_pool(int listenfd); void add_client(int connfd); void check_clients(); - int process_client(rio_t *rio, int connfd); + int process_client(int connfd); public: -- Gitblit v1.8.0