[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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user