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