Ejemplo n.º 1
0
 /**
  *
  */
 public function close()
 {
     if ($this->closed) {
         return;
     }
     $this->emit('end', [$this]);
     $this->loop->removeStream($this->fd);
     $this->buffer->removeAllListeners();
     $this->removeAllListeners();
     unset($this->socket);
     $this->closed = true;
 }
Ejemplo n.º 2
0
 /**
  * @override
  */
 public function removeStream($stream)
 {
     $this->loop->removeStream($stream);
 }