public function rconAuth($password) {
        $this->rconRequestId = $this->generateRconRequestId();

        $this->rconSocket->send(new Packets\RCON\RCONAuthRequest($this->rconRequestId, $password));

        $reply = $this->rconSocket->getReply();
        if ($reply == null) {
            throw new RCONBanException();
        }
        $reply = $this->rconSocket->getReply();
        $this->rconAuthenticated = $reply->getRequestId() == $this->rconRequestId;

        return $this->rconAuthenticated;
    }
public function rconAuth($password) {
        $this->rconRequestId = $this->generateRconRequestId();

        $this->rconSocket->send(new Packets\RCON\RCONAuthRequest($this->rconRequestId, $password));

        $reply = $this->rconSocket->getReply();
        if ($reply == null) {
            throw new RCONBanException();
        }
        $reply = $this->rconSocket->getReply();
        $this->rconAuthenticated = $reply->getRequestId() == $this->rconRequestId;

        return $this->rconAuthenticated;
    }
public function rconAuth ( $ password ) { $ this -> rconRequestId = $ this -> generateRconRequestId ( ) ; $ this -> rconSocket -> send ( new Packets \ RCON \ RCONAuthRequest ( $ this -> rconRequestId , $ password ) ) ; $ reply = $ this -> rconSocket -> getReply ( ) ; if ( $ reply == null ) { throw new RCONBanException ( ) ; } $ reply = $ this -> rconSocket -> getReply ( ) ; $ this -> rconAuthenticated = $ reply -> getRequestId ( ) == $ this -> rconRequestId ; return $ this -> rconAuthenticated ; }
Authenticates the connection for RCON communication with the server

@param string $password The RCON password of the server
@return bool whether authentication was successful
@see rconExec()
@throws RCONBanException if banned by the server
@throws SteamCondenserException if a problem occurs while parsing the
reply
@throws TimeoutException if the request times out
Authenticates the connection for RCON communication with the server