[TASK] Implemented countActiveConnections().
This commit is contained in:
@@ -37,7 +37,7 @@ $srv = $clientManager->createTcpConnection("srv", "jpt");
|
||||
$srv->bind("localhost", 7777);
|
||||
$srv->listen();
|
||||
|
||||
while($clientManager->countSockets() > 0) {
|
||||
while($clientManager->countActiveConnections() > 0) {
|
||||
$clientManager->work();
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user