소스 검색

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);
     }