[TASK] Continued to work on the Buffer thingy. Code still broken.
This commit is contained in:
@@ -42,14 +42,18 @@ abstract class Client_AbstractClient {
|
||||
}
|
||||
|
||||
/**
|
||||
* Forwards incoming data to the ProtocolParser.
|
||||
* Calls protected processData()
|
||||
* Forwards incoming data to the ProtocolHandler
|
||||
* Let's the ProtocolHandler do all the work and forward its results to the Clients.
|
||||
* Return resulting raw data.
|
||||
* @param string $rawData
|
||||
* @return string
|
||||
*/
|
||||
public function processRawData($rawData) {
|
||||
$contentObject = $this->protocolHandler->pushRawData($rawData);
|
||||
return $this->processContentObject($this->protocolHandler->);
|
||||
$this->protocolHandler->pushRawData($rawData);
|
||||
while($this->protocolHandler->canWork()) {
|
||||
$this->processContentObject($this->protocolHandler->work());
|
||||
}
|
||||
return $this->protocolHandler->getRawData();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user