public function feed($buf) { xml_parse($this->parser, $buf, false); }
/** * Called when new data received * @return void */ public function onRead() { Timer::setTimeout($this->keepaliveTimer); if (isset($this->xml)) { $this->xml->feed($this->readUnlimited()); } }