src/ConnectionFactory.php
public static function create($host, $port, $password)
    {
        $factory = new \Socket\Raw\Factory();
        $socket = $factory->createClient(sprintf('%s:%s', $host, $port));

        return new \gries\Rcon\Connection($socket, $password);
    }
public static function create($host, $port, $password)
    {
        $factory = new \Socket\Raw\Factory();
        $socket = $factory->createClient(sprintf('%s:%s', $host, $port));

        return new \gries\Rcon\Connection($socket, $password);
    }
public static function create ( $ host , $ port , $ password ) { $ factory = new \ Socket \ Raw \ Factory ( ) ; $ socket = $ factory -> createClient ( sprintf ( '%s:%s' , $ host , $ port ) ) ; return new \ gries \ Rcon \ Connection ( $ socket , $ password ) ; }
Create a new RconConnection

@param $host
@param $port
@param $password

@return \gries\Rcon\Connection
Create a new RconConnection