Lines Matching refs:Socket
3 * This file is part of the FreeDSx Socket package.
11 namespace FreeDSx\Socket;
13 use FreeDSx\Socket\Exception\ConnectionException;
20 class SocketServer extends Socket
45 * @var Socket[]
122 * @return null|Socket
124 public function accept(int $timeout = -1): ?Socket
128 $socket = new Socket($socket, \array_merge($this->options, [
134 return $socket instanceof Socket ? $socket : null;
157 * @return Socket[]
165 * @param Socket $socket
167 public function removeClient(Socket $socket): void