private function acceptConnection(): void
    {
        $clientSocket = @stream_socket_accept($this->serverSocket);

        if (false !== $clientSocket) {
            stream_set_blocking($clientSocket, false);

            $connection = new StreamSocketConnection($clientSocket);

            $id = spl_object_hash($connection);

            $this->clientSockets[$id] = $clientSocket;
            $this->connections[$id]   = $connection;
        }
    }
private function acceptConnection(): void
    {
        $clientSocket = @stream_socket_accept($this->serverSocket);

        if (false !== $clientSocket) {
            stream_set_blocking($clientSocket, false);

            $connection = new StreamSocketConnection($clientSocket);

            $id = spl_object_hash($connection);

            $this->clientSockets[$id] = $clientSocket;
            $this->connections[$id]   = $connection;
        }
    }
private function acceptConnection ( ) : void { $ clientSocket = @ stream_socket_accept ( $ this -> serverSocket ) ; if ( false !== $ clientSocket ) { stream_set_blocking ( $ clientSocket , false ) ; $ connection = new StreamSocketConnection ( $ clientSocket ) ; $ id = spl_object_hash ( $ connection ) ; $ this -> clientSockets [ $ id ] = $ clientSocket ; $ this -> connections [ $ id ] = $ connection ; } }
Accept incoming connections from the server stream socket.
Accept incoming connections from the server stream socket .