Explorar o código

setMaxConnectionNum

hewei.it %!s(int64=4) %!d(string=hai) anos
pai
achega
37c44267d9
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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);
     }