[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
@@ -23,6 +23,23 @@ abstract class Protocol_AbstractProtocolHandler {
*/
protected $buffer_outgoing;
/**
* This function will be called by the constructor.
* It will create the necessary instances of Misc_Buffer and
* put them in $buffer_incoming and $buffer_outgoing.
* @return void
*/
abstract public function createBuffers();
/**
* General constructor.
* Calls createBuffers()
* @return void
*/
function __construct() {
$this->createBuffers();
}
/**
* Returns whether work() can be called or not.
* Depends on the protocol and its implementation.