Class: SteamCondenser::Servers::Packets::RCON::RCONGoldSrcRequest

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

Overview

This packet class represents a RCON request packet sent to a GoldSrc server

It is used to request a command execution on the server.

See Also:

Author:

  • Sebastian Staudt

Constant Summary

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 Method Summary collapse

Constructor Details

#initialize(request) ⇒ RCONGoldSrcRequest

Creates a request for the given request string

The request string has the form rcon {challenge number} {RCON password} {command}.


26
27
28
# File 'lib/steam-condenser/servers/packets/rcon/rcon_goldsrc_request.rb', line 26

def initialize(request)
  super 0x00, request
end

Instance Method Details

#to_sString

Returns the raw data representing this packet


33
34
35
# File 'lib/steam-condenser/servers/packets/rcon/rcon_goldsrc_request.rb', line 33

def to_s
  [0xFFFFFFFF, @content_data.string].pack('Va*')
end