[TASK] Continued to work on the Buffer thingy. Code still broken.

This commit is contained in:
Jan Philipp Timme
2010-12-02 22:34:12 +00:00
parent c382cfe756
commit 2b8263a49d
2 changed files with 48 additions and 7 deletions
+8 -4
View File
@@ -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();
}
/**