Exemplo n.º 1
0
 public function __construct(LoopInterface $loop, $socket, DatagramBuffer $buffer = null)
 {
     if ($buffer === null) {
         $buffer = new Buffer($loop, $socket);
     }
     parent::__construct($loop, $socket, $buffer);
 }
Exemplo n.º 2
0
 public function shutdown()
 {
     $this->socket->end();
     $this->removeAllListeners();
 }