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