Module: RequestWithChallenge

Included in:
A2S_PLAYER_Packet, A2S_RULES_Packet
Defined in:
lib/steam/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

Returns:

  • (String)

    A string containing the raw data of this request packet



15
16
17
# File 'lib/steam/packets/request_with_challenge.rb', line 15

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