feed() public method

Feed stream
public feed ( string $buf ) : void
$buf string
return void
Beispiel #1
0
 /**
  * Called when new data received
  * @return void
  */
 public function onRead()
 {
     Timer::setTimeout($this->keepaliveTimer);
     if (isset($this->xml)) {
         $this->xml->feed($this->readUnlimited());
     }
 }