Module: SteamCondenser::Servers::Packets::RequestWithChallenge

Included in:
A2S_PLAYER_Packet, A2S_RULES_Packet
Defined in:
lib/steam-condenser/servers/packets/request_with_challenge.rb

Overview

This module implements a method to generate raw packet data used by request packets which send a challenge number

Author:

  • Sebastian Staudt

Instance Method Summary collapse

Instance Method Details

#to_sString

Returns the raw data representing this packet


17
18
19
# File 'lib/steam-condenser/servers/packets/request_with_challenge.rb', line 17

def to_s
  [0xFF, 0xFF, 0xFF, 0xFF, @header_data, @content_data.string.to_i].pack('c5l')
end