示例#1
0
 public function __construct(\ZMQSocket $socket, Serializer $serializer, LoopInterface $loop)
 {
     parent::__construct($socket, $serializer, $loop);
     $fd = $this->socket->getSockOpt(\ZMQ::SOCKOPT_FD);
     $this->buffer = new Buffer($this->socket, $fd, $this->loop, [$this, 'handleEvents']);
 }