Class: M2C_ISVALIDMD5_Packet
- Inherits:
-
Object
- Object
- M2C_ISVALIDMD5_Packet
- Includes:
- SteamPacket
- Defined in:
- lib/steam/packets/m2c_isvalidmd5_packet.rb
Overview
This packet class represents a M2S_ISVALIDMD5 response replied by a master server
It is used to provide a challenge number to a game server
Constant Summary
Constants included from SteamPacket
SteamPacket::A2M_GET_SERVERS_BATCH2_HEADER, SteamPacket::A2S_INFO_HEADER, SteamPacket::A2S_PLAYER_HEADER, SteamPacket::A2S_RULES_HEADER, SteamPacket::A2S_SERVERQUERY_GETCHALLENGE_HEADER, SteamPacket::C2M_CHECKMD5_HEADER, SteamPacket::M2A_SERVER_BATCH_HEADER, SteamPacket::M2C_ISVALIDMD5_HEADER, SteamPacket::M2S_REQUESTRESTART_HEADER, SteamPacket::RCON_GOLDSRC_CHALLENGE_HEADER, SteamPacket::RCON_GOLDSRC_NO_CHALLENGE_HEADER, SteamPacket::RCON_GOLDSRC_RESPONSE_HEADER, SteamPacket::S2A_INFO2_HEADER, SteamPacket::S2A_INFO_DETAILED_HEADER, SteamPacket::S2A_LOGSTRING_HEADER, SteamPacket::S2A_PLAYER_HEADER, SteamPacket::S2A_RULES_HEADER, SteamPacket::S2C_CHALLENGE_HEADER, SteamPacket::S2C_CONNREJECT_HEADER, SteamPacket::S2M_HEARTBEAT2_HEADER
Instance Attribute Summary collapse
-
#challenge ⇒ Fixnum
readonly
Returns the challenge number to use for master server communication.
Instance Method Summary collapse
-
#initialize(data) ⇒ M2C_ISVALIDMD5_Packet
constructor
Creates a new M2S_ISVALIDMD5 response object based on the given data.
Methods included from SteamPacket
Constructor Details
#initialize(data) ⇒ M2C_ISVALIDMD5_Packet
Creates a new M2S_ISVALIDMD5 response object based on the given data
27 28 29 30 31 32 |
# File 'lib/steam/packets/m2c_isvalidmd5_packet.rb', line 27 def initialize(data) super M2C_ISVALIDMD5_HEADER, data @content_data.byte @challenge = @content_data.long end |
Instance Attribute Details
#challenge ⇒ Fixnum (readonly)
Returns the challenge number to use for master server communication
22 23 24 |
# File 'lib/steam/packets/m2c_isvalidmd5_packet.rb', line 22 def challenge @challenge end |