Эх сурвалжийг харах

rised max connected users

Kajetan Johannes Hammerle 4 жил өмнө
parent
commit
a6b5187720
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      Main.cpp

+ 1 - 1
Main.cpp

@@ -12,7 +12,7 @@ int main() {
     if(socket.start(4456)) {
         return 0;
     }
-    std::array<Client, 1> clients;
+    std::array<Client, 20> clients;
     while(true) {
         int clientId = socket.waitForClients(100);
         if(clientId != -1) {