public function onClose($serv, $fd)
 {
     Client::remove($fd);
     Trace::debug("Client: {$fd} Close.");
 }
Exemplo n.º 2
0
 public function __destruct()
 {
     Trace::debug("*********cli {$this->fd} __destruct");
     if (isset($this->cli)) {
         $this->cli->isConnected() && $this->cli->close();
         unset($this->cli);
     }
     unset($this->queue);
 }