Kraken\Ipc\Zmq\ZmqSocket::close PHP 메소드

close() 공개 메소드

Close connection and discard not sent data.
public close ( )
    public function close()
    {
        if ($this->closed) {
            return;
        }
        $this->emit('end', [$this]);
        $this->loop->removeStream($this->fd);
        $this->buffer->flushListeners();
        $this->flushListeners();
        unset($this->socket);
        $this->closed = true;
    }