Class: SteamCondenser::Servers::Packets::RCON::RCONAuthResponse

Inherits:
Object
  • Object
show all
Includes:
BasePacket
Defined in:
lib/steam-condenser/servers/packets/rcon/rcon_auth_response.rb

Overview

This packet class represents a SERVERDATA_AUTH_RESPONSE packet sent by a Source server

It is used to indicate the success or failure of an authentication attempt of a client for RCON communication.

See Also:

Author:

  • Sebastian Staudt

Constant Summary

Constants included from BasePacket

BasePacket::SERVERDATA_AUTH, BasePacket::SERVERDATA_AUTH_RESPONSE, BasePacket::SERVERDATA_EXECCOMMAND, BasePacket::SERVERDATA_RESPONSE_VALUE

Constants included from BasePacket

BasePacket::A2M_GET_SERVERS_BATCH2_HEADER, BasePacket::A2S_INFO_HEADER, BasePacket::A2S_PLAYER_HEADER, BasePacket::A2S_RULES_HEADER, BasePacket::A2S_SERVERQUERY_GETCHALLENGE_HEADER, BasePacket::C2M_CHECKMD5_HEADER, BasePacket::M2A_SERVER_BATCH_HEADER, BasePacket::RCON_GOLDSRC_CHALLENGE_HEADER, BasePacket::RCON_GOLDSRC_NO_CHALLENGE_HEADER, BasePacket::RCON_GOLDSRC_RESPONSE_HEADER, BasePacket::S2A_INFO2_HEADER, BasePacket::S2A_INFO_DETAILED_HEADER, BasePacket::S2A_PLAYER_HEADER, BasePacket::S2A_RULES_HEADER, BasePacket::S2C_CHALLENGE_HEADER, BasePacket::S2C_CONNREJECT_HEADER

Instance Attribute Summary

Attributes included from BasePacket

#request_id

Instance Method Summary collapse

Methods included from BasePacket

#to_s

Methods included from BasePacket

#to_s

Constructor Details

#initialize(request_id) ⇒ RCONAuthResponse

Creates a RCON authentication response for the given request ID

The request ID of the packet will match the client's request if authentication was successful

Parameters:

  • request_id (Fixnum)

    The request ID of the RCON connection


28
29
30
# File 'lib/steam-condenser/servers/packets/rcon/rcon_auth_response.rb', line 28

def initialize(request_id)
  super request_id, SERVERDATA_AUTH_RESPONSE, ''
end