[TASK] Implemented the ProtocolHandler things so it works again.

[TASK] Added some comments.
[TASK] Added TODOs concerning refactoring and more functions that are needed.
This commit is contained in:
Jan Philipp Timme
2010-12-08 16:47:04 +00:00
parent 2b8263a49d
commit dee3333578
10 changed files with 114 additions and 17 deletions
+4 -2
View File
@@ -61,16 +61,18 @@ class Client_ClientManager {
}
/**
* TODO: Implement a function that is able to count active connections instead of sockets!
* @see Connection_ConnectionPool
* @return int
*/
public function countConnections() {
return $this->connectionPool->countConnections();
public function countSockets() {
return $this->connectionPool->countSockets();
}
/**
* Main worker function.
* Processes incoming data, calls clients and much more.
* TODO: refactor this? (split it into handleFoobar() functions)
* @return void
*/
public function work() {