浏览代码

setMaxConnectionNum

hewei.it 4 年之前
父节点
当前提交
37c44267d9
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      evpp/TcpServer.h

+ 3 - 0
evpp/TcpServer.h

@@ -29,6 +29,9 @@ public:
         return listenfd;
     }
 
+    void setMaxConnectionNum(uint32_t num) {
+        max_connections = num;
+    }
     void setThreadNum(int num) {
         loop_threads.setThreadNum(num);
     }