Lines Matching refs:socket
47 protected $socket;
54 public function __construct(Socket $socket, EncoderInterface $encoder = null)
56 parent::__construct($socket, $encoder ?? new LdapEncoder());
60 * Encrypt messages sent by the socket for the queue.
67 $this->socket->block(true);
68 $this->socket->encrypt(true);
69 $this->socket->block(false);
79 return ($this->socket->isConnected() && $this->socket->isEncrypted());
83 * Cleanly close the socket and clear buffer contents.
87 $this->socket->close();
132 * Send LDAP messages out the socket.
150 $this->socket->write(substr($buffer, 0, self::BUFFER_SIZE));
155 $this->socket->write($buffer);
166 return $this->socket->isConnected();