[TASK] Added an outputBuffer to the AbstractClientDispatcher.

[TASK] Added support for the new outputBuffer - it can be used in addition to the default behaviour "return a string on processRawData()".
This commit is contained in:
Jan Philipp Timme
2011-12-04 14:31:18 +01:00
parent e702124895
commit d0de3823a9
5 changed files with 69 additions and 25 deletions
@@ -131,7 +131,12 @@ class ClientManager {
unset($data);
//call the registered client
if(isset($this->clientDispatcherPool[$connectionHandler->getID()])) $outgoingData .= $this->clientDispatcherPool[$connectionHandler->getID()]->processRawData($incomingData);
if(isset($this->clientDispatcherPool[$connectionHandler->getID()])) {
//other output data has priority.
$outgoingData .= $this->clientDispatcherPool[$connectionHandler->getID()]->getOutputData();
//returned data from the processing will be sent.
$outgoingData .= $this->clientDispatcherPool[$connectionHandler->getID()]->processRawData($incomingData);
}
//i don't know what to do here... maybe call a connection bridge?