Disque\Connection\Socket::getSocket PHP Method

getSocket() protected method

Build actual socket
protected getSocket ( string $host, integer $port, float $timeout ) : resource
$host string Host
$port integer Port
$timeout float Timeout
return resource Socket
    protected function getSocket($host, $port, $timeout)
    {
        return stream_socket_client("tcp://{$host}:{$port}", $error, $message, $timeout, STREAM_CLIENT_CONNECT | STREAM_CLIENT_PERSISTENT);
    }