public function createTcpDaemon(KernelInterface $kernel, DaemonOptions $options, string $host, int $port): DaemonInterface
    {
        $address = 'tcp://'.$host.':'.$port;
        $socket  = stream_socket_server($address);

        if (false === $socket) {
            throw new \RuntimeException('Could not create stream socket server on: '.$address);
        }

        return $this->createDaemonFromStreamSocket($kernel, $options, $socket);
    }
public function createTcpDaemon(KernelInterface $kernel, DaemonOptions $options, string $host, int $port): DaemonInterface
    {
        $address = 'tcp://'.$host.':'.$port;
        $socket  = stream_socket_server($address);

        if (false === $socket) {
            throw new \RuntimeException('Could not create stream socket server on: '.$address);
        }

        return $this->createDaemonFromStreamSocket($kernel, $options, $socket);
    }
public function createTcpDaemon ( KernelInterface $ kernel , DaemonOptions $ options , string $ host , int $ port ) : DaemonInterface { $ address = 'tcp://' . $ host . ':' . $ port ; $ socket = stream_socket_server ( $ address ) ; if ( false === $ socket ) { throw new \ RuntimeException ( 'Could not create stream socket server on: ' . $ address ) ; } return $ this -> createDaemonFromStreamSocket ( $ kernel , $ options , $ socket ) ; }
Create a FastCGI daemon listening for TCP connections on a given address
using the userland FastCGI implementation. The default host is
'localhost'.

@param KernelInterface $kernel  The kernel to use for the daemon
@param DaemonOptions   $options The daemon configuration
@param string          $host    The host to bind to
@param int             $port    The port to bind to

@return UserlandDaemon The FastCGI daemon

@codeCoverageIgnore
Create a FastCGI daemon listening for TCP connections on a given address using the userland FastCGI implementation . The default host is localhost .