src/T4G/BFP4F/Rcon/Base.php
public function connect(&$cn = 1, &$cs = "Unknown error")
    {
        $fp = fsockopen($this->ip, $this->port, $cn, $cs, 3) or die("Could not connect. " . date("Y-m-d H:i:s") . PHP_EOL);     
        if (!$fp) {
            return false;
        } else {
            self::$socket = $fp;
            return true;
        }
        
    }
public function connect(&$cn = 1, &$cs = "Unknown error")
    {
        $fp = fsockopen($this->ip, $this->port, $cn, $cs, 3) or die("Could not connect. " . date("Y-m-d H:i:s") . PHP_EOL);     
        if (!$fp) {
            return false;
        } else {
            self::$socket = $fp;
            return true;
        }
        
    }
public function connect ( & $ cn = 1 , & $ cs = "Unknown error" ) { $ fp = fsockopen ( $ this -> ip , $ this -> port , $ cn , $ cs , 3 ) or die ( "Could not connect. " . date ( "Y-m-d H:i:s" ) . PHP_EOL ) ; if ( ! $ fp ) { return false ; } else { self :: $ socket = $ fp ; return true ; } }
Connect with server

@param int    &$cn number of error
@param string &$cs detailed error message

@access public
@return int
Connect with server