[TASK] Implemented countActiveConnections().
This commit is contained in:
@@ -61,7 +61,6 @@ class Client_ClientManager {
|
||||
}
|
||||
|
||||
/**
|
||||
* TODO: Implement a function that is able to count active connections instead of sockets!
|
||||
* @see Connection_ConnectionPool
|
||||
* @return int
|
||||
*/
|
||||
@@ -69,6 +68,15 @@ class Client_ClientManager {
|
||||
return $this->connectionPool->countSockets();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the amount of connected connection handlers.
|
||||
* @see Connection_ConnectionPool
|
||||
* @return int
|
||||
*/
|
||||
public function countActiveConnections() {
|
||||
return $this->connectionPool->countActiveConnections();
|
||||
}
|
||||
|
||||
/**
|
||||
* Main worker function.
|
||||
* Processes incoming data, calls clients and much more.
|
||||
|
||||
Reference in New Issue
Block a user