Lines Matching refs:socket
100 $socket = @\stream_socket_server(
107 if ($socket === false) {
115 $this->socket = $socket;
126 $socket = @\stream_socket_accept($this->socket, $timeout);
127 if (\is_resource($socket)) {
128 $socket = new Socket($socket, \array_merge($this->options, [
131 $this->clients[] = $socket;
134 return $socket instanceof Socket ? $socket : null;
149 $this->socket,
165 * @param Socket $socket
167 public function removeClient(Socket $socket): void argument
169 if (($index = \array_search($socket, $this->clients, true)) !== false) {