Kraken\Ipc\Zmq\ZmqSocket::__construct PHP Method

__construct() public method

public __construct ( ZMQSocket $socket, Kraken\Loop\LoopInterface $loop )
$socket ZMQSocket
$loop Kraken\Loop\LoopInterface
    public function __construct(RawZMQSocket $socket, LoopInterface $loop)
    {
        $this->socket = $socket;
        $this->loop = $loop;
        $this->fd = $this->socket->getSockOpt(ZMQ::SOCKOPT_FD);
        $writeListener = [$this, 'handleEvent'];
        $this->buffer = new ZmqBuffer($socket, $this->fd, $this->loop, $writeListener);
    }