Lines Matching refs:this
8 * file that was distributed with this source code.
57 $this->serverOpts,
61 if (!\in_array($this->options['transport'], self::TRANSPORTS, true)) {
64 $this->options['transport'],
75 * @return $this
82 if ($this->options['transport'] !== 'udp') {
86 $transport = $this->options['transport'];
87 if ($transport === 'tcp' && $this->options['use_ssl'] === true) {
102 $this->errorNumber,
103 $this->errorMessage,
105 $this->createSocketContext()
110 \strtoupper($this->options['transport']),
111 $this->errorNumber,
112 $this->errorMessage
115 $this->socket = $socket;
117 return $this;
126 $socket = @\stream_socket_accept($this->socket, $timeout);
128 $socket = new Socket($socket, \array_merge($this->options, [
129 'timeout_read' => $this->options['idle_timeout']
131 $this->clients[] = $socket;
140 * @todo Buffer size should be adjustable. Max UDP packet size is 65507. Currently this avoids possible truncation.
146 $this->block(true);
149 $this->socket,
161 return $this->clients;
169 if (($index = \array_search($socket, $this->clients, true)) !== false) {
170 unset($this->clients[$index]);