steam-condenser 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +7 -7
- data/README.md +9 -2
- data/doc/A2M_GET_SERVERS_BATCH2_Packet.html +426 -0
- data/doc/A2S_INFO_Packet.html +260 -0
- data/doc/A2S_PLAYER_Packet.html +295 -0
- data/doc/A2S_RULES_Packet.html +296 -0
- data/doc/A2S_SERVERQUERY_GETCHALLENGE_Packet.html +261 -0
- data/doc/AbstractL4DStats.html +978 -0
- data/doc/AbstractL4DWeapon.html +734 -0
- data/doc/Achievement.html +660 -0
- data/doc/AlienSwarmMission.html +1557 -0
- data/doc/AlienSwarmStats.html +965 -0
- data/doc/AlienSwarmWeapon.html +640 -0
- data/doc/AppNews.html +1442 -0
- data/doc/C2M_CHECKMD5_Packet.html +341 -0
- data/doc/CSSMap.html +806 -0
- data/doc/CSSStats.html +825 -0
- data/doc/CSSWeapon.html +889 -0
- data/doc/Cacheable.html +913 -0
- data/doc/Cacheable/ClassMethods.html +696 -0
- data/doc/DefenseGridStats.html +2559 -0
- data/doc/DoDSClass.html +1264 -0
- data/doc/DoDSStats.html +486 -0
- data/doc/DoDSWeapon.html +806 -0
- data/doc/Dota2BetaInventory.html +339 -0
- data/doc/Dota2Inventory.html +339 -0
- data/doc/Dota2Item.html +388 -0
- data/doc/Dota2Stats.html +366 -0
- data/doc/GameAchievement.html +1257 -0
- data/doc/GameClass.html +321 -0
- data/doc/GameInventory.html +1363 -0
- data/doc/GameItem.html +1339 -0
- data/doc/GameLeaderboard.html +1609 -0
- data/doc/GameLeaderboardEntry.html +629 -0
- data/doc/GameSchema.html +568 -0
- data/doc/GameServer.html +2405 -0
- data/doc/GameStats.html +1461 -0
- data/doc/GameWeapon.html +590 -0
- data/doc/GoldSrcServer.html +740 -0
- data/doc/GoldSrcSocket.html +850 -0
- data/doc/ItemSchema.html +780 -0
- data/doc/L4D2Map.html +739 -0
- data/doc/L4D2Stats.html +930 -0
- data/doc/L4D2Weapon.html +486 -0
- data/doc/L4DExplosive.html +374 -0
- data/doc/L4DMap.html +776 -0
- data/doc/L4DStats.html +530 -0
- data/doc/L4DWeapon.html +296 -0
- data/doc/M2A_SERVER_BATCH_Packet.html +430 -0
- data/doc/M2C_ISVALIDMD5_Packet.html +383 -0
- data/doc/M2S_REQUESTRESTART_Packet.html +382 -0
- data/doc/MasterServer.html +1070 -0
- data/doc/MasterServerSocket.html +293 -0
- data/doc/Module.html +194 -0
- data/doc/PacketFormatError.html +257 -0
- data/doc/Portal2Inventory.html +339 -0
- data/doc/Portal2Item.html +499 -0
- data/doc/Portal2Stats.html +368 -0
- data/doc/RCONAuthRequest.html +318 -0
- data/doc/RCONAuthResponse.html +305 -0
- data/doc/RCONBanError.html +247 -0
- data/doc/RCONExecRequest.html +318 -0
- data/doc/RCONExecResponse.html +407 -0
- data/doc/RCONGoldSrcRequest.html +363 -0
- data/doc/RCONGoldSrcResponse.html +367 -0
- data/doc/RCONNoAuthError.html +247 -0
- data/doc/RCONPacket.html +548 -0
- data/doc/RCONPacketFactory.html +300 -0
- data/doc/RCONSocket.html +669 -0
- data/doc/RCONTerminator.html +304 -0
- data/doc/RequestWithChallenge.html +233 -0
- data/doc/S2A_INFO2_Packet.html +371 -0
- data/doc/S2A_INFO_BasePacket.html +357 -0
- data/doc/S2A_INFO_DETAILED_Packet.html +370 -0
- data/doc/S2A_LOGSTRING_Packet.html +373 -0
- data/doc/S2A_PLAYER_Packet.html +417 -0
- data/doc/S2A_RULES_Packet.html +411 -0
- data/doc/S2C_CHALLENGE_Packet.html +370 -0
- data/doc/S2M_HEARTBEAT2_Packet.html +444 -0
- data/doc/Server.html +781 -0
- data/doc/SourceServer.html +776 -0
- data/doc/SourceSocket.html +366 -0
- data/doc/StatsAttribute.html +514 -0
- data/doc/SteamCondenser.html +155 -0
- data/doc/SteamCondenser/A2M_GET_SERVERS_BATCH2_Packet.html +413 -0
- data/doc/SteamCondenser/A2S_INFO_Packet.html +249 -0
- data/doc/SteamCondenser/A2S_PLAYER_Packet.html +281 -0
- data/doc/SteamCondenser/A2S_RULES_Packet.html +282 -0
- data/doc/SteamCondenser/A2S_SERVERQUERY_GETCHALLENGE_Packet.html +250 -0
- data/doc/SteamCondenser/AbstractL4DStats.html +954 -0
- data/doc/SteamCondenser/AbstractL4DWeapon.html +703 -0
- data/doc/SteamCondenser/AlienSwarmMission.html +1494 -0
- data/doc/SteamCondenser/AlienSwarmStats.html +938 -0
- data/doc/SteamCondenser/AlienSwarmWeapon.html +614 -0
- data/doc/SteamCondenser/AppNews.html +1387 -0
- data/doc/SteamCondenser/C2M_CHECKMD5_Packet.html +327 -0
- data/doc/SteamCondenser/CSSMap.html +774 -0
- data/doc/SteamCondenser/CSSStats.html +799 -0
- data/doc/SteamCondenser/CSSWeapon.html +855 -0
- data/doc/SteamCondenser/Cacheable.html +698 -0
- data/doc/SteamCondenser/Cacheable/ClassMethods.html +531 -0
- data/doc/SteamCondenser/Community.html +134 -0
- data/doc/SteamCondenser/DefenseGridStats.html +2455 -0
- data/doc/SteamCondenser/DoDSClass.html +1209 -0
- data/doc/SteamCondenser/DoDSStats.html +470 -0
- data/doc/SteamCondenser/DoDSWeapon.html +774 -0
- data/doc/SteamCondenser/Error.html +156 -0
- data/doc/SteamCondenser/Error/PacketFormat.html +246 -0
- data/doc/SteamCondenser/Error/RCONBan.html +237 -0
- data/doc/SteamCondenser/Error/RCONNoAuth.html +236 -0
- data/doc/SteamCondenser/Error/Timeout.html +238 -0
- data/doc/SteamCondenser/Error/WebApi.html +339 -0
- data/doc/SteamCondenser/GameAchievement.html +1210 -0
- data/doc/SteamCondenser/GameClass.html +306 -0
- data/doc/SteamCondenser/GameInventory.html +1236 -0
- data/doc/SteamCondenser/GameItem.html +1282 -0
- data/doc/SteamCondenser/GameLeaderboard.html +1562 -0
- data/doc/SteamCondenser/GameLeaderboardEntry.html +604 -0
- data/doc/SteamCondenser/GameServer.html +2337 -0
- data/doc/SteamCondenser/GameStats.html +1416 -0
- data/doc/SteamCondenser/GameWeapon.html +566 -0
- data/doc/SteamCondenser/GoldSrcServer.html +716 -0
- data/doc/SteamCondenser/GoldSrcSocket.html +831 -0
- data/doc/SteamCondenser/L4D2Map.html +713 -0
- data/doc/SteamCondenser/L4D2Stats.html +906 -0
- data/doc/SteamCondenser/L4D2Weapon.html +466 -0
- data/doc/SteamCondenser/L4DExplosive.html +362 -0
- data/doc/SteamCondenser/L4DMap.html +746 -0
- data/doc/SteamCondenser/L4DStats.html +513 -0
- data/doc/SteamCondenser/L4DWeapon.html +284 -0
- data/doc/SteamCondenser/M2A_SERVER_BATCH_Packet.html +415 -0
- data/doc/SteamCondenser/M2C_ISVALIDMD5_Packet.html +368 -0
- data/doc/SteamCondenser/M2S_REQUESTRESTART_Packet.html +367 -0
- data/doc/SteamCondenser/MasterServer.html +1046 -0
- data/doc/SteamCondenser/MasterServerSocket.html +282 -0
- data/doc/SteamCondenser/Portal2Inventory.html +217 -0
- data/doc/SteamCondenser/Portal2Item.html +483 -0
- data/doc/SteamCondenser/Portal2Stats.html +353 -0
- data/doc/SteamCondenser/RCONAuthRequest.html +306 -0
- data/doc/SteamCondenser/RCONAuthResponse.html +293 -0
- data/doc/SteamCondenser/RCONExecRequest.html +306 -0
- data/doc/SteamCondenser/RCONExecResponse.html +392 -0
- data/doc/SteamCondenser/RCONGoldSrcRequest.html +349 -0
- data/doc/SteamCondenser/RCONGoldSrcResponse.html +354 -0
- data/doc/SteamCondenser/RCONPacket.html +530 -0
- data/doc/SteamCondenser/RCONPacketFactory.html +293 -0
- data/doc/SteamCondenser/RCONSocket.html +649 -0
- data/doc/SteamCondenser/RCONTerminator.html +292 -0
- data/doc/SteamCondenser/RequestWithChallenge.html +223 -0
- data/doc/SteamCondenser/S2A_INFO2_Packet.html +359 -0
- data/doc/SteamCondenser/S2A_INFO_BasePacket.html +342 -0
- data/doc/SteamCondenser/S2A_INFO_DETAILED_Packet.html +358 -0
- data/doc/SteamCondenser/S2A_LOGSTRING_Packet.html +358 -0
- data/doc/SteamCondenser/S2A_PLAYER_Packet.html +402 -0
- data/doc/SteamCondenser/S2A_RULES_Packet.html +396 -0
- data/doc/SteamCondenser/S2C_CHALLENGE_Packet.html +356 -0
- data/doc/SteamCondenser/S2M_HEARTBEAT2_Packet.html +430 -0
- data/doc/SteamCondenser/Server.html +754 -0
- data/doc/SteamCondenser/Servers.html +133 -0
- data/doc/SteamCondenser/SourceServer.html +752 -0
- data/doc/SteamCondenser/SourceSocket.html +355 -0
- data/doc/SteamCondenser/SteamGame.html +1802 -0
- data/doc/SteamCondenser/SteamGroup.html +969 -0
- data/doc/SteamCondenser/SteamId.html +4242 -0
- data/doc/SteamCondenser/SteamPacket.html +456 -0
- data/doc/SteamCondenser/SteamPacketFactory.html +521 -0
- data/doc/SteamCondenser/SteamPlayer.html +1696 -0
- data/doc/SteamCondenser/SteamSocket.html +679 -0
- data/doc/SteamCondenser/TF2BetaInventory.html +198 -0
- data/doc/SteamCondenser/TF2Class.html +1145 -0
- data/doc/SteamCondenser/TF2ClassFactory.html +263 -0
- data/doc/SteamCondenser/TF2Engineer.html +534 -0
- data/doc/SteamCondenser/TF2GoldenWrench.html +731 -0
- data/doc/SteamCondenser/TF2Inventory.html +217 -0
- data/doc/SteamCondenser/TF2Item.html +482 -0
- data/doc/SteamCondenser/TF2Medic.html +445 -0
- data/doc/SteamCondenser/TF2Sniper.html +357 -0
- data/doc/SteamCondenser/TF2Spy.html +531 -0
- data/doc/SteamCondenser/TF2Stats.html +670 -0
- data/doc/SteamCondenser/TimeoutError.html +249 -0
- data/doc/SteamCondenser/WebApi.html +999 -0
- data/doc/SteamCondenser/XMLData.html +171 -0
- data/doc/SteamCondenserError.html +153 -0
- data/doc/SteamGame.html +1859 -0
- data/doc/SteamGroup.html +1012 -0
- data/doc/SteamId.html +4369 -0
- data/doc/SteamPacket.html +469 -0
- data/doc/SteamPacketFactory.html +545 -0
- data/doc/SteamPlayer.html +1766 -0
- data/doc/SteamSocket.html +699 -0
- data/doc/StringIO.html +947 -0
- data/doc/TF2BetaInventory.html +315 -0
- data/doc/TF2Class.html +1194 -0
- data/doc/TF2ClassFactory.html +273 -0
- data/doc/TF2Engineer.html +558 -0
- data/doc/TF2GoldenWrench.html +760 -0
- data/doc/TF2Inventory.html +339 -0
- data/doc/TF2Item.html +499 -0
- data/doc/TF2Medic.html +465 -0
- data/doc/TF2Sniper.html +373 -0
- data/doc/TF2Spy.html +555 -0
- data/doc/TF2Stats.html +696 -0
- data/doc/WebApi.html +1021 -0
- data/doc/WebApiError.html +347 -0
- data/doc/XMLData.html +253 -0
- data/doc/_index.html +717 -0
- data/doc/class_list.html +53 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +57 -0
- data/doc/css/style.css +328 -0
- data/doc/file.LICENSE.html +100 -0
- data/doc/file.README.html +136 -0
- data/doc/file_list.html +58 -0
- data/doc/frames.html +28 -0
- data/doc/index.html +136 -0
- data/doc/js/app.js +214 -0
- data/doc/js/full_list.js +173 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +3988 -0
- data/doc/methods_list.html +3900 -0
- data/doc/top-level-namespace.html +114 -0
- data/lib/steam-condenser/version.rb +1 -1
- data/lib/steam/community/cacheable.rb +105 -44
- data/lib/steam/community/dota2/dota2_beta_inventory.rb +27 -0
- data/lib/steam/community/dota2/dota2_inventory.rb +27 -0
- data/lib/steam/community/dota2/dota2_item.rb +33 -0
- data/lib/steam/community/game_inventory.rb +18 -16
- data/lib/steam/community/game_leaderboard.rb +2 -2
- data/lib/steam/community/game_stats.rb +1 -1
- data/lib/steam/community/portal2/portal2_inventory.rb +11 -9
- data/lib/steam/community/steam_game.rb +0 -2
- data/lib/steam/community/steam_group.rb +2 -7
- data/lib/steam/community/steam_id.rb +2 -7
- data/lib/steam/community/tf2/tf2_beta_inventory.rb +11 -8
- data/lib/steam/community/tf2/tf2_inventory.rb +11 -9
- data/lib/steam/community/xml_data.rb +8 -1
- data/lib/steam/packets/a2s_player_packet.rb +1 -1
- data/lib/steam/packets/a2s_rules_packet.rb +1 -1
- data/lib/steam/servers/master_server.rb +3 -2
- data/lib/steam/sockets/rcon_socket.rb +1 -2
- data/pkg/steam-condenser-1.2.0.gem +0 -0
- data/pkg/steam-condenser-1.2.0/Gemfile +3 -0
- data/pkg/steam-condenser-1.2.0/Gemfile.lock +30 -0
- data/pkg/steam-condenser-1.2.0/LICENSE +25 -0
- data/pkg/steam-condenser-1.2.0/README.md +47 -0
- data/pkg/steam-condenser-1.2.0/Rakefile +46 -0
- data/pkg/steam-condenser-1.2.0/lib/core_ext/stringio.rb +91 -0
- data/pkg/steam-condenser-1.2.0/lib/errors/packet_format_error.rb +21 -0
- data/pkg/steam-condenser-1.2.0/lib/errors/rcon_ban_error.rb +22 -0
- data/pkg/steam-condenser-1.2.0/lib/errors/rcon_no_auth_error.rb +21 -0
- data/pkg/steam-condenser-1.2.0/lib/errors/steam_condenser_error.rb +11 -0
- data/pkg/steam-condenser-1.2.0/lib/errors/timeout_error.rb +28 -0
- data/pkg/steam-condenser-1.2.0/lib/errors/web_api_error.rb +57 -0
- data/pkg/steam-condenser-1.2.0/lib/steam-condenser.rb +18 -0
- data/pkg/steam-condenser-1.2.0/lib/steam-condenser/community.rb +24 -0
- data/pkg/steam-condenser-1.2.0/lib/steam-condenser/servers.rb +24 -0
- data/pkg/steam-condenser-1.2.0/lib/steam-condenser/version.rb +11 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/alien_swarm/alien_swarm_mission.rb +119 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/alien_swarm/alien_swarm_stats.rb +179 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/alien_swarm/alien_swarm_weapon.rb +49 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/app_news.rb +133 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/cacheable.rb +137 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/css/css_map.rb +61 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/css/css_stats.rb +136 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/css/css_weapon.rb +69 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/defense_grid/defense_grid_stats.rb +237 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/dods/dods_class.rb +90 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/dods/dods_stats.rb +61 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/dods/dods_weapon.rb +67 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/game_achievement.rb +109 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/game_class.rb +22 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/game_inventory.rb +152 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/game_item.rb +99 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/game_leaderboard.rb +201 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/game_leaderboard_entry.rb +43 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/game_stats.rb +175 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/game_weapon.rb +41 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/l4d/abstract_l4d_stats.rb +173 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/l4d/abstract_l4d_weapon.rb +56 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/l4d/l4d2_map.rb +90 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/l4d/l4d2_stats.rb +165 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/l4d/l4d2_weapon.rb +38 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/l4d/l4d_explosive.rb +34 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/l4d/l4d_map.rb +65 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/l4d/l4d_stats.rb +71 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/l4d/l4d_weapon.rb +26 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/portal2/portal2_inventory.rb +25 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/portal2/portal2_item.rb +47 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/portal2/portal2_stats.rb +32 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/steam_game.rb +182 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/steam_group.rb +135 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/steam_id.rb +513 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/tf2/tf2_beta_inventory.rb +22 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/tf2/tf2_class.rb +92 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/tf2/tf2_class_factory.rb +40 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/tf2/tf2_engineer.rb +43 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/tf2/tf2_golden_wrench.rb +70 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/tf2/tf2_inventory.rb +25 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/tf2/tf2_item.rb +47 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/tf2/tf2_medic.rb +35 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/tf2/tf2_sniper.rb +28 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/tf2/tf2_spy.rb +41 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/tf2/tf2_stats.rb +76 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/web_api.rb +129 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/community/xml_data.rb +17 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/a2m_get_servers_batch2_packet.rb +59 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/a2s_info_packet.rb +24 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/a2s_player_packet.rb +31 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/a2s_rules_packet.rb +32 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/a2s_serverquery_getchallenge_packet.rb +25 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/c2m_checkmd5_packet.rb +30 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/m2a_server_batch_packet.rb +52 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/m2c_isvalidmd5_packet.rb +34 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/m2s_requestrestart_packet.rb +34 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/rcon/rcon_auth_request.rb +28 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/rcon/rcon_auth_response.rb +30 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/rcon/rcon_exec_request.rb +28 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/rcon/rcon_exec_response.rb +37 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/rcon/rcon_goldsrc_request.rb +35 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/rcon/rcon_goldsrc_response.rb +34 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/rcon/rcon_packet.rb +57 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/rcon/rcon_packet_factory.rb +43 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/rcon/rcon_terminator.rb +29 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/request_with_challenge.rb +19 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/s2a_info2_packet.rb +62 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/s2a_info_base_packet.rb +35 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/s2a_info_detailed_packet.rb +61 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/s2a_logstring_packet.rb +30 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/s2a_player_packet.rb +44 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/s2a_rules_packet.rb +48 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/s2c_challenge_packet.rb +35 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/s2m_heartbeat2_packet.rb +71 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/steam_packet.rb +52 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/packets/steam_packet_factory.rb +108 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/servers/game_server.rb +392 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/servers/goldsrc_server.rb +74 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/servers/master_server.rb +182 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/servers/server.rb +104 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/servers/source_server.rb +98 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/sockets/goldsrc_socket.rb +142 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/sockets/master_server_socket.rb +30 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/sockets/rcon_socket.rb +94 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/sockets/source_socket.rb +78 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/sockets/steam_socket.rb +86 -0
- data/pkg/steam-condenser-1.2.0/lib/steam/steam_player.rb +143 -0
- data/pkg/steam-condenser-1.2.0/steam-condenser.gemspec +25 -0
- data/pkg/steam-condenser-1.2.0/test/core_ext/test_stringio.rb +59 -0
- data/pkg/steam-condenser-1.2.0/test/fixtures/invalid.xml +2 -0
- data/pkg/steam-condenser-1.2.0/test/fixtures/sonofthor.xml +882 -0
- data/pkg/steam-condenser-1.2.0/test/fixtures/status_goldsrc +3 -0
- data/pkg/steam-condenser-1.2.0/test/fixtures/status_source +3 -0
- data/pkg/steam-condenser-1.2.0/test/fixtures/valve-members.xml +231 -0
- data/pkg/steam-condenser-1.2.0/test/helper.rb +45 -0
- data/pkg/steam-condenser-1.2.0/test/steam/communtiy/test_steam_group.rb +83 -0
- data/pkg/steam-condenser-1.2.0/test/steam/communtiy/test_steam_id.rb +111 -0
- data/pkg/steam-condenser-1.2.0/test/steam/communtiy/test_web_api.rb +98 -0
- data/pkg/steam-condenser-1.2.0/test/steam/packets/test_steam_packet.rb +37 -0
- data/pkg/steam-condenser-1.2.0/test/steam/servers/test_game_server.rb +296 -0
- data/pkg/steam-condenser-1.2.0/test/steam/servers/test_goldsrc_server.rb +59 -0
- data/pkg/steam-condenser-1.2.0/test/steam/servers/test_master_server.rb +131 -0
- data/pkg/steam-condenser-1.2.0/test/steam/servers/test_server.rb +72 -0
- data/pkg/steam-condenser-1.2.0/test/steam/servers/test_source_server.rb +126 -0
- data/pkg/steam-condenser-1.2.0/test/steam/sockets/test_goldsrc_socket.rb +127 -0
- data/pkg/steam-condenser-1.2.0/test/steam/sockets/test_master_server_socket.rb +42 -0
- data/pkg/steam-condenser-1.2.0/test/steam/sockets/test_rcon_socket.rb +109 -0
- data/pkg/steam-condenser-1.2.0/test/steam/sockets/test_source_socket.rb +77 -0
- data/pkg/steam-condenser-1.2.0/test/steam/sockets/test_steam_socket.rb +97 -0
- data/steam-condenser.gemspec +3 -3
- data/test/steam/communtiy/test_cacheable.rb +100 -0
- data/test/steam/servers/test_master_server.rb +3 -3
- metadata +366 -15
@@ -0,0 +1,370 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>
|
7
|
+
Class: S2C_CHALLENGE_Packet
|
8
|
+
|
9
|
+
— Steam Condenser – Ruby API
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
hasFrames = window.top.frames.main ? true : false;
|
19
|
+
relpath = '';
|
20
|
+
framesUrl = "frames.html#!" + escape(window.location.href);
|
21
|
+
</script>
|
22
|
+
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
25
|
+
|
26
|
+
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
27
|
+
|
28
|
+
|
29
|
+
</head>
|
30
|
+
<body>
|
31
|
+
<div id="header">
|
32
|
+
<div id="menu">
|
33
|
+
|
34
|
+
<a href="_index.html">Index (S)</a> »
|
35
|
+
|
36
|
+
|
37
|
+
<span class="title">S2C_CHALLENGE_Packet</span>
|
38
|
+
|
39
|
+
|
40
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<div id="search">
|
44
|
+
|
45
|
+
<a class="full_list_link" id="class_list_link"
|
46
|
+
href="class_list.html">
|
47
|
+
Class List
|
48
|
+
</a>
|
49
|
+
|
50
|
+
<a class="full_list_link" id="method_list_link"
|
51
|
+
href="method_list.html">
|
52
|
+
Method List
|
53
|
+
</a>
|
54
|
+
|
55
|
+
<a class="full_list_link" id="file_list_link"
|
56
|
+
href="file_list.html">
|
57
|
+
File List
|
58
|
+
</a>
|
59
|
+
|
60
|
+
</div>
|
61
|
+
<div class="clear"></div>
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<iframe id="search_frame"></iframe>
|
65
|
+
|
66
|
+
<div id="content"><h1>Class: S2C_CHALLENGE_Packet
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</h1>
|
71
|
+
|
72
|
+
<dl class="box">
|
73
|
+
|
74
|
+
<dt class="r1">Inherits:</dt>
|
75
|
+
<dd class="r1">
|
76
|
+
<span class="inheritName">Object</span>
|
77
|
+
|
78
|
+
<ul class="fullTree">
|
79
|
+
<li>Object</li>
|
80
|
+
|
81
|
+
<li class="next">S2C_CHALLENGE_Packet</li>
|
82
|
+
|
83
|
+
</ul>
|
84
|
+
<a href="#" class="inheritanceTree">show all</a>
|
85
|
+
|
86
|
+
</dd>
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
<dt class="r2">Includes:</dt>
|
94
|
+
<dd class="r2"><span class='object_link'><a href="SteamPacket.html" title="SteamPacket (module)">SteamPacket</a></span></dd>
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
<dt class="r1 last">Defined in:</dt>
|
101
|
+
<dd class="r1 last">lib/steam/packets/s2c_challenge_packet.rb</dd>
|
102
|
+
|
103
|
+
</dl>
|
104
|
+
<div class="clear"></div>
|
105
|
+
|
106
|
+
<h2>Overview</h2><div class="docstring">
|
107
|
+
<div class="discussion">
|
108
|
+
<p>This packet class represents a S2C_CHALLENGE response replied by a game
|
109
|
+
server</p>
|
110
|
+
|
111
|
+
<p>It is used to provide a challenge number to a client requesting information
|
112
|
+
from the game server.</p>
|
113
|
+
|
114
|
+
|
115
|
+
</div>
|
116
|
+
</div>
|
117
|
+
<div class="tags">
|
118
|
+
|
119
|
+
|
120
|
+
<p class="tag_title">See Also:</p>
|
121
|
+
<ul class="see">
|
122
|
+
|
123
|
+
<li><span class='object_link'><a href="GameServer.html#update_challenge_number-instance_method" title="GameServer#update_challenge_number (method)">GameServer#update_challenge_number</a></span></li>
|
124
|
+
|
125
|
+
</ul>
|
126
|
+
<p class="tag_title">Author:</p>
|
127
|
+
<ul class="author">
|
128
|
+
|
129
|
+
<li>
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
<div class='inline'><p>Sebastian Staudt</p>
|
136
|
+
</div>
|
137
|
+
|
138
|
+
</li>
|
139
|
+
|
140
|
+
</ul>
|
141
|
+
|
142
|
+
</div>
|
143
|
+
<h2>Constant Summary</h2>
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
<h2>Constant Summary</h2>
|
149
|
+
|
150
|
+
<h3 class="inherited">Constants included
|
151
|
+
from <span class='object_link'><a href="SteamPacket.html" title="SteamPacket (module)">SteamPacket</a></span></h3>
|
152
|
+
<p class="inherited"><span class='object_link'><a href="SteamPacket.html#A2M_GET_SERVERS_BATCH2_HEADER-constant" title="SteamPacket::A2M_GET_SERVERS_BATCH2_HEADER (constant)">SteamPacket::A2M_GET_SERVERS_BATCH2_HEADER</a></span>, <span class='object_link'><a href="SteamPacket.html#A2S_INFO_HEADER-constant" title="SteamPacket::A2S_INFO_HEADER (constant)">SteamPacket::A2S_INFO_HEADER</a></span>, <span class='object_link'><a href="SteamPacket.html#A2S_PLAYER_HEADER-constant" title="SteamPacket::A2S_PLAYER_HEADER (constant)">SteamPacket::A2S_PLAYER_HEADER</a></span>, <span class='object_link'><a href="SteamPacket.html#A2S_RULES_HEADER-constant" title="SteamPacket::A2S_RULES_HEADER (constant)">SteamPacket::A2S_RULES_HEADER</a></span>, <span class='object_link'><a href="SteamPacket.html#A2S_SERVERQUERY_GETCHALLENGE_HEADER-constant" title="SteamPacket::A2S_SERVERQUERY_GETCHALLENGE_HEADER (constant)">SteamPacket::A2S_SERVERQUERY_GETCHALLENGE_HEADER</a></span>, <span class='object_link'><a href="SteamPacket.html#C2M_CHECKMD5_HEADER-constant" title="SteamPacket::C2M_CHECKMD5_HEADER (constant)">SteamPacket::C2M_CHECKMD5_HEADER</a></span>, <span class='object_link'><a href="SteamPacket.html#M2A_SERVER_BATCH_HEADER-constant" title="SteamPacket::M2A_SERVER_BATCH_HEADER (constant)">SteamPacket::M2A_SERVER_BATCH_HEADER</a></span>, <span class='object_link'><a href="SteamPacket.html#M2C_ISVALIDMD5_HEADER-constant" title="SteamPacket::M2C_ISVALIDMD5_HEADER (constant)">SteamPacket::M2C_ISVALIDMD5_HEADER</a></span>, <span class='object_link'><a href="SteamPacket.html#M2S_REQUESTRESTART_HEADER-constant" title="SteamPacket::M2S_REQUESTRESTART_HEADER (constant)">SteamPacket::M2S_REQUESTRESTART_HEADER</a></span>, <span class='object_link'><a href="SteamPacket.html#RCON_GOLDSRC_CHALLENGE_HEADER-constant" title="SteamPacket::RCON_GOLDSRC_CHALLENGE_HEADER (constant)">SteamPacket::RCON_GOLDSRC_CHALLENGE_HEADER</a></span>, <span class='object_link'><a href="SteamPacket.html#RCON_GOLDSRC_NO_CHALLENGE_HEADER-constant" title="SteamPacket::RCON_GOLDSRC_NO_CHALLENGE_HEADER (constant)">SteamPacket::RCON_GOLDSRC_NO_CHALLENGE_HEADER</a></span>, <span class='object_link'><a href="SteamPacket.html#RCON_GOLDSRC_RESPONSE_HEADER-constant" title="SteamPacket::RCON_GOLDSRC_RESPONSE_HEADER (constant)">SteamPacket::RCON_GOLDSRC_RESPONSE_HEADER</a></span>, <span class='object_link'><a href="SteamPacket.html#S2A_INFO2_HEADER-constant" title="SteamPacket::S2A_INFO2_HEADER (constant)">SteamPacket::S2A_INFO2_HEADER</a></span>, <span class='object_link'><a href="SteamPacket.html#S2A_INFO_DETAILED_HEADER-constant" title="SteamPacket::S2A_INFO_DETAILED_HEADER (constant)">SteamPacket::S2A_INFO_DETAILED_HEADER</a></span>, <span class='object_link'><a href="SteamPacket.html#S2A_LOGSTRING_HEADER-constant" title="SteamPacket::S2A_LOGSTRING_HEADER (constant)">SteamPacket::S2A_LOGSTRING_HEADER</a></span>, <span class='object_link'><a href="SteamPacket.html#S2A_PLAYER_HEADER-constant" title="SteamPacket::S2A_PLAYER_HEADER (constant)">SteamPacket::S2A_PLAYER_HEADER</a></span>, <span class='object_link'><a href="SteamPacket.html#S2A_RULES_HEADER-constant" title="SteamPacket::S2A_RULES_HEADER (constant)">SteamPacket::S2A_RULES_HEADER</a></span>, <span class='object_link'><a href="SteamPacket.html#S2C_CHALLENGE_HEADER-constant" title="SteamPacket::S2C_CHALLENGE_HEADER (constant)">SteamPacket::S2C_CHALLENGE_HEADER</a></span>, <span class='object_link'><a href="SteamPacket.html#S2C_CONNREJECT_HEADER-constant" title="SteamPacket::S2C_CONNREJECT_HEADER (constant)">SteamPacket::S2C_CONNREJECT_HEADER</a></span>, <span class='object_link'><a href="SteamPacket.html#S2M_HEARTBEAT2_HEADER-constant" title="SteamPacket::S2M_HEARTBEAT2_HEADER (constant)">SteamPacket::S2M_HEARTBEAT2_HEADER</a></span></p>
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
<h2>
|
160
|
+
Instance Method Summary
|
161
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
162
|
+
</h2>
|
163
|
+
|
164
|
+
<ul class="summary">
|
165
|
+
|
166
|
+
<li class="public ">
|
167
|
+
<span class="summary_signature">
|
168
|
+
|
169
|
+
<a href="#challenge_number-instance_method" title="#challenge_number (instance method)">- (Fixnum) <strong>challenge_number</strong> </a>
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
</span>
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
<span class="summary_desc"><div class='inline'><p>Returns the challenge number received from the game server.</p>
|
184
|
+
</div></span>
|
185
|
+
|
186
|
+
</li>
|
187
|
+
|
188
|
+
|
189
|
+
<li class="public ">
|
190
|
+
<span class="summary_signature">
|
191
|
+
|
192
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">- (S2C_CHALLENGE_Packet) <strong>initialize</strong>(challenge_number) </a>
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
</span>
|
197
|
+
|
198
|
+
|
199
|
+
<span class="note title constructor">constructor</span>
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
<span class="summary_desc"><div class='inline'><p>Creates a new S2C_CHALLENGE response object based on the given data.</p>
|
209
|
+
</div></span>
|
210
|
+
|
211
|
+
</li>
|
212
|
+
|
213
|
+
|
214
|
+
</ul>
|
215
|
+
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
|
226
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="SteamPacket.html" title="SteamPacket (module)">SteamPacket</a></span></h3>
|
227
|
+
<p class="inherited"><span class='object_link'><a href="SteamPacket.html#to_s-instance_method" title="SteamPacket#to_s (method)">#to_s</a></span></p>
|
228
|
+
<div id="constructor_details" class="method_details_list">
|
229
|
+
<h2>Constructor Details</h2>
|
230
|
+
|
231
|
+
<div class="method_details first">
|
232
|
+
<h3 class="signature first" id="initialize-instance_method">
|
233
|
+
|
234
|
+
- (<tt><span class='object_link'><a href="" title="S2C_CHALLENGE_Packet (class)">S2C_CHALLENGE_Packet</a></span></tt>) <strong>initialize</strong>(challenge_number)
|
235
|
+
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
|
240
|
+
</h3><div class="docstring">
|
241
|
+
<div class="discussion">
|
242
|
+
<p>Creates a new S2C_CHALLENGE response object based on the given data</p>
|
243
|
+
|
244
|
+
|
245
|
+
</div>
|
246
|
+
</div>
|
247
|
+
<div class="tags">
|
248
|
+
<p class="tag_title">Parameters:</p>
|
249
|
+
<ul class="param">
|
250
|
+
|
251
|
+
<li>
|
252
|
+
|
253
|
+
<span class='name'>challenge_number</span>
|
254
|
+
|
255
|
+
|
256
|
+
<span class='type'>(<tt>String</tt>)</span>
|
257
|
+
|
258
|
+
|
259
|
+
|
260
|
+
—
|
261
|
+
<div class='inline'><p>The raw packet data replied from the
|
262
|
+
server</p>
|
263
|
+
</div>
|
264
|
+
|
265
|
+
</li>
|
266
|
+
|
267
|
+
</ul>
|
268
|
+
|
269
|
+
|
270
|
+
</div><table class="source_code">
|
271
|
+
<tr>
|
272
|
+
<td>
|
273
|
+
<pre class="lines">
|
274
|
+
|
275
|
+
|
276
|
+
24
|
277
|
+
25
|
278
|
+
26</pre>
|
279
|
+
</td>
|
280
|
+
<td>
|
281
|
+
<pre class="code"><span class="info file"># File 'lib/steam/packets/s2c_challenge_packet.rb', line 24</span>
|
282
|
+
|
283
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='rubyid_challenge_number identifier id'>challenge_number</span><span class='rparen token'>)</span>
|
284
|
+
<span class='rubyid_super super kw'>super</span> <span class='rubyid_S2C_CHALLENGE_HEADER constant id'>S2C_CHALLENGE_HEADER</span><span class='comma token'>,</span> <span class='rubyid_challenge_number identifier id'>challenge_number</span>
|
285
|
+
<span class='rubyid_end end kw'>end</span>
|
286
|
+
</pre>
|
287
|
+
</td>
|
288
|
+
</tr>
|
289
|
+
</table>
|
290
|
+
</div>
|
291
|
+
|
292
|
+
</div>
|
293
|
+
|
294
|
+
|
295
|
+
<div id="instance_method_details" class="method_details_list">
|
296
|
+
<h2>Instance Method Details</h2>
|
297
|
+
|
298
|
+
|
299
|
+
<div class="method_details first">
|
300
|
+
<h3 class="signature first" id="challenge_number-instance_method">
|
301
|
+
|
302
|
+
- (<tt>Fixnum</tt>) <strong>challenge_number</strong>
|
303
|
+
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
|
308
|
+
</h3><div class="docstring">
|
309
|
+
<div class="discussion">
|
310
|
+
<p>Returns the challenge number received from the game server</p>
|
311
|
+
|
312
|
+
|
313
|
+
</div>
|
314
|
+
</div>
|
315
|
+
<div class="tags">
|
316
|
+
|
317
|
+
<p class="tag_title">Returns:</p>
|
318
|
+
<ul class="return">
|
319
|
+
|
320
|
+
<li>
|
321
|
+
|
322
|
+
|
323
|
+
<span class='type'>(<tt>Fixnum</tt>)</span>
|
324
|
+
|
325
|
+
|
326
|
+
|
327
|
+
—
|
328
|
+
<div class='inline'><p>The challenge number provided by the game server</p>
|
329
|
+
</div>
|
330
|
+
|
331
|
+
</li>
|
332
|
+
|
333
|
+
</ul>
|
334
|
+
|
335
|
+
</div><table class="source_code">
|
336
|
+
<tr>
|
337
|
+
<td>
|
338
|
+
<pre class="lines">
|
339
|
+
|
340
|
+
|
341
|
+
31
|
342
|
+
32
|
343
|
+
33
|
344
|
+
34</pre>
|
345
|
+
</td>
|
346
|
+
<td>
|
347
|
+
<pre class="code"><span class="info file"># File 'lib/steam/packets/s2c_challenge_packet.rb', line 31</span>
|
348
|
+
|
349
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_challenge_number identifier id'>challenge_number</span>
|
350
|
+
<span class='rubyid_@content_data ivar id'>@content_data</span><span class='dot token'>.</span><span class='rubyid_rewind identifier id'>rewind</span>
|
351
|
+
<span class='rubyid_@content_data ivar id'>@content_data</span><span class='dot token'>.</span><span class='rubyid_long identifier id'>long</span>
|
352
|
+
<span class='rubyid_end end kw'>end</span>
|
353
|
+
</pre>
|
354
|
+
</td>
|
355
|
+
</tr>
|
356
|
+
</table>
|
357
|
+
</div>
|
358
|
+
|
359
|
+
</div>
|
360
|
+
|
361
|
+
</div>
|
362
|
+
|
363
|
+
<div id="footer">
|
364
|
+
Generated on Sat Jul 21 13:09:48 2012 by
|
365
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
366
|
+
0.8.2.1 (ruby-1.8.7).
|
367
|
+
</div>
|
368
|
+
|
369
|
+
</body>
|
370
|
+
</html>
|
@@ -0,0 +1,444 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>
|
7
|
+
Class: S2M_HEARTBEAT2_Packet
|
8
|
+
|
9
|
+
— Steam Condenser – Ruby API
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
hasFrames = window.top.frames.main ? true : false;
|
19
|
+
relpath = '';
|
20
|
+
framesUrl = "frames.html#!" + escape(window.location.href);
|
21
|
+
</script>
|
22
|
+
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
25
|
+
|
26
|
+
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
27
|
+
|
28
|
+
|
29
|
+
</head>
|
30
|
+
<body>
|
31
|
+
<div id="header">
|
32
|
+
<div id="menu">
|
33
|
+
|
34
|
+
<a href="_index.html">Index (S)</a> »
|
35
|
+
|
36
|
+
|
37
|
+
<span class="title">S2M_HEARTBEAT2_Packet</span>
|
38
|
+
|
39
|
+
|
40
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<div id="search">
|
44
|
+
|
45
|
+
<a class="full_list_link" id="class_list_link"
|
46
|
+
href="class_list.html">
|
47
|
+
Class List
|
48
|
+
</a>
|
49
|
+
|
50
|
+
<a class="full_list_link" id="method_list_link"
|
51
|
+
href="method_list.html">
|
52
|
+
Method List
|
53
|
+
</a>
|
54
|
+
|
55
|
+
<a class="full_list_link" id="file_list_link"
|
56
|
+
href="file_list.html">
|
57
|
+
File List
|
58
|
+
</a>
|
59
|
+
|
60
|
+
</div>
|
61
|
+
<div class="clear"></div>
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<iframe id="search_frame"></iframe>
|
65
|
+
|
66
|
+
<div id="content"><h1>Class: S2M_HEARTBEAT2_Packet
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</h1>
|
71
|
+
|
72
|
+
<dl class="box">
|
73
|
+
|
74
|
+
<dt class="r1">Inherits:</dt>
|
75
|
+
<dd class="r1">
|
76
|
+
<span class="inheritName">Object</span>
|
77
|
+
|
78
|
+
<ul class="fullTree">
|
79
|
+
<li>Object</li>
|
80
|
+
|
81
|
+
<li class="next">S2M_HEARTBEAT2_Packet</li>
|
82
|
+
|
83
|
+
</ul>
|
84
|
+
<a href="#" class="inheritanceTree">show all</a>
|
85
|
+
|
86
|
+
</dd>
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
<dt class="r2">Includes:</dt>
|
94
|
+
<dd class="r2"><span class='object_link'><a href="SteamPacket.html" title="SteamPacket (module)">SteamPacket</a></span></dd>
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
<dt class="r1 last">Defined in:</dt>
|
101
|
+
<dd class="r1 last">lib/steam/packets/s2m_heartbeat2_packet.rb</dd>
|
102
|
+
|
103
|
+
</dl>
|
104
|
+
<div class="clear"></div>
|
105
|
+
|
106
|
+
<h2>Overview</h2><div class="docstring">
|
107
|
+
<div class="discussion">
|
108
|
+
<p>This class represents a S2M_HEARTBEAT2 packet sent by game servers to master
|
109
|
+
servers</p>
|
110
|
+
|
111
|
+
<p>It is used to signal the game server's availability and status to the master
|
112
|
+
servers.</p>
|
113
|
+
|
114
|
+
|
115
|
+
</div>
|
116
|
+
</div>
|
117
|
+
<div class="tags">
|
118
|
+
|
119
|
+
|
120
|
+
<p class="tag_title">See Also:</p>
|
121
|
+
<ul class="see">
|
122
|
+
|
123
|
+
<li><span class='object_link'><a href="MasterServer.html#send_heartbeat-instance_method" title="MasterServer#send_heartbeat (method)">MasterServer#send_heartbeat</a></span></li>
|
124
|
+
|
125
|
+
</ul>
|
126
|
+
<p class="tag_title">Author:</p>
|
127
|
+
<ul class="author">
|
128
|
+
|
129
|
+
<li>
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
<div class='inline'><p>Sebastian Staudt</p>
|
136
|
+
</div>
|
137
|
+
|
138
|
+
</li>
|
139
|
+
|
140
|
+
</ul>
|
141
|
+
|
142
|
+
</div>
|
143
|
+
<h2>Constant Summary</h2>
|
144
|
+
|
145
|
+
<dl class="constants">
|
146
|
+
|
147
|
+
<dt id="DEFAULT_DATA-constant" class="">DEFAULT_DATA =
|
148
|
+
<div class="docstring">
|
149
|
+
<div class="discussion">
|
150
|
+
<p>Default data to send with a S2M_HEARTBEAT2 packet</p>
|
151
|
+
|
152
|
+
|
153
|
+
</div>
|
154
|
+
</div>
|
155
|
+
<div class="tags">
|
156
|
+
|
157
|
+
|
158
|
+
</div>
|
159
|
+
</dt>
|
160
|
+
<dd><pre class="code"><span class='lbrace token'>{</span>
|
161
|
+
<span class='symbol val'>:appid</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='integer val'>320</span><span class='comma token'>,</span>
|
162
|
+
<span class='symbol val'>:bots</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='integer val'>0</span><span class='comma token'>,</span>
|
163
|
+
<span class='symbol val'>:challenge</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='rubyid_nil nil kw'>nil</span><span class='comma token'>,</span>
|
164
|
+
<span class='symbol val'>:dedicated</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='integer val'>0</span><span class='comma token'>,</span>
|
165
|
+
<span class='symbol val'>:gamedir</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='string val'>'hl2mp'</span><span class='comma token'>,</span>
|
166
|
+
<span class='symbol val'>:gameport</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='integer val'>27015</span><span class='comma token'>,</span>
|
167
|
+
<span class='symbol val'>:gametype</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='string val'>'ctf'</span><span class='comma token'>,</span>
|
168
|
+
<span class='symbol val'>:lan</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='integer val'>1</span><span class='comma token'>,</span>
|
169
|
+
<span class='symbol val'>:map</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='string val'>'null'</span><span class='comma token'>,</span>
|
170
|
+
<span class='symbol val'>:max</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='integer val'>24</span><span class='comma token'>,</span>
|
171
|
+
<span class='symbol val'>:os</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='string val'>'l'</span><span class='comma token'>,</span>
|
172
|
+
<span class='symbol val'>:password</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='integer val'>0</span><span class='comma token'>,</span>
|
173
|
+
<span class='symbol val'>:players</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='integer val'>0</span><span class='comma token'>,</span>
|
174
|
+
<span class='symbol val'>:product</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='string val'>'hl2dm'</span><span class='comma token'>,</span>
|
175
|
+
<span class='symbol val'>:protocol</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='integer val'>7</span><span class='comma token'>,</span>
|
176
|
+
<span class='symbol val'>:region</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='integer val'>255</span><span class='comma token'>,</span>
|
177
|
+
<span class='symbol val'>:secure</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='integer val'>0</span><span class='comma token'>,</span>
|
178
|
+
<span class='symbol val'>:specport</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='integer val'>0</span><span class='comma token'>,</span>
|
179
|
+
<span class='symbol val'>:type</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='string val'>'d'</span><span class='comma token'>,</span>
|
180
|
+
<span class='symbol val'>:version</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='string val'>'1.0.0.0'</span>
|
181
|
+
<span class='rbrace token'>}</span>
|
182
|
+
</pre></dd>
|
183
|
+
|
184
|
+
</dl>
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
<h3 class="inherited">Constants included
|
192
|
+
from <span class='object_link'><a href="SteamPacket.html" title="SteamPacket (module)">SteamPacket</a></span></h3>
|
193
|
+
<p class="inherited"><span class='object_link'><a href="SteamPacket.html#A2M_GET_SERVERS_BATCH2_HEADER-constant" title="SteamPacket::A2M_GET_SERVERS_BATCH2_HEADER (constant)">SteamPacket::A2M_GET_SERVERS_BATCH2_HEADER</a></span>, <span class='object_link'><a href="SteamPacket.html#A2S_INFO_HEADER-constant" title="SteamPacket::A2S_INFO_HEADER (constant)">SteamPacket::A2S_INFO_HEADER</a></span>, <span class='object_link'><a href="SteamPacket.html#A2S_PLAYER_HEADER-constant" title="SteamPacket::A2S_PLAYER_HEADER (constant)">SteamPacket::A2S_PLAYER_HEADER</a></span>, <span class='object_link'><a href="SteamPacket.html#A2S_RULES_HEADER-constant" title="SteamPacket::A2S_RULES_HEADER (constant)">SteamPacket::A2S_RULES_HEADER</a></span>, <span class='object_link'><a href="SteamPacket.html#A2S_SERVERQUERY_GETCHALLENGE_HEADER-constant" title="SteamPacket::A2S_SERVERQUERY_GETCHALLENGE_HEADER (constant)">SteamPacket::A2S_SERVERQUERY_GETCHALLENGE_HEADER</a></span>, <span class='object_link'><a href="SteamPacket.html#C2M_CHECKMD5_HEADER-constant" title="SteamPacket::C2M_CHECKMD5_HEADER (constant)">SteamPacket::C2M_CHECKMD5_HEADER</a></span>, <span class='object_link'><a href="SteamPacket.html#M2A_SERVER_BATCH_HEADER-constant" title="SteamPacket::M2A_SERVER_BATCH_HEADER (constant)">SteamPacket::M2A_SERVER_BATCH_HEADER</a></span>, <span class='object_link'><a href="SteamPacket.html#M2C_ISVALIDMD5_HEADER-constant" title="SteamPacket::M2C_ISVALIDMD5_HEADER (constant)">SteamPacket::M2C_ISVALIDMD5_HEADER</a></span>, <span class='object_link'><a href="SteamPacket.html#M2S_REQUESTRESTART_HEADER-constant" title="SteamPacket::M2S_REQUESTRESTART_HEADER (constant)">SteamPacket::M2S_REQUESTRESTART_HEADER</a></span>, <span class='object_link'><a href="SteamPacket.html#RCON_GOLDSRC_CHALLENGE_HEADER-constant" title="SteamPacket::RCON_GOLDSRC_CHALLENGE_HEADER (constant)">SteamPacket::RCON_GOLDSRC_CHALLENGE_HEADER</a></span>, <span class='object_link'><a href="SteamPacket.html#RCON_GOLDSRC_NO_CHALLENGE_HEADER-constant" title="SteamPacket::RCON_GOLDSRC_NO_CHALLENGE_HEADER (constant)">SteamPacket::RCON_GOLDSRC_NO_CHALLENGE_HEADER</a></span>, <span class='object_link'><a href="SteamPacket.html#RCON_GOLDSRC_RESPONSE_HEADER-constant" title="SteamPacket::RCON_GOLDSRC_RESPONSE_HEADER (constant)">SteamPacket::RCON_GOLDSRC_RESPONSE_HEADER</a></span>, <span class='object_link'><a href="SteamPacket.html#S2A_INFO2_HEADER-constant" title="SteamPacket::S2A_INFO2_HEADER (constant)">SteamPacket::S2A_INFO2_HEADER</a></span>, <span class='object_link'><a href="SteamPacket.html#S2A_INFO_DETAILED_HEADER-constant" title="SteamPacket::S2A_INFO_DETAILED_HEADER (constant)">SteamPacket::S2A_INFO_DETAILED_HEADER</a></span>, <span class='object_link'><a href="SteamPacket.html#S2A_LOGSTRING_HEADER-constant" title="SteamPacket::S2A_LOGSTRING_HEADER (constant)">SteamPacket::S2A_LOGSTRING_HEADER</a></span>, <span class='object_link'><a href="SteamPacket.html#S2A_PLAYER_HEADER-constant" title="SteamPacket::S2A_PLAYER_HEADER (constant)">SteamPacket::S2A_PLAYER_HEADER</a></span>, <span class='object_link'><a href="SteamPacket.html#S2A_RULES_HEADER-constant" title="SteamPacket::S2A_RULES_HEADER (constant)">SteamPacket::S2A_RULES_HEADER</a></span>, <span class='object_link'><a href="SteamPacket.html#S2C_CHALLENGE_HEADER-constant" title="SteamPacket::S2C_CHALLENGE_HEADER (constant)">SteamPacket::S2C_CHALLENGE_HEADER</a></span>, <span class='object_link'><a href="SteamPacket.html#S2C_CONNREJECT_HEADER-constant" title="SteamPacket::S2C_CONNREJECT_HEADER (constant)">SteamPacket::S2C_CONNREJECT_HEADER</a></span>, <span class='object_link'><a href="SteamPacket.html#S2M_HEARTBEAT2_HEADER-constant" title="SteamPacket::S2M_HEARTBEAT2_HEADER (constant)">SteamPacket::S2M_HEARTBEAT2_HEADER</a></span></p>
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
<h2>
|
201
|
+
Instance Method Summary
|
202
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
203
|
+
</h2>
|
204
|
+
|
205
|
+
<ul class="summary">
|
206
|
+
|
207
|
+
<li class="public ">
|
208
|
+
<span class="summary_signature">
|
209
|
+
|
210
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">- (S2M_HEARTBEAT2_Packet) <strong>initialize</strong>(data = {}) </a>
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
</span>
|
215
|
+
|
216
|
+
|
217
|
+
<span class="note title constructor">constructor</span>
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
|
226
|
+
<span class="summary_desc"><div class='inline'><p>Creates a new S2M_HEARTBEAT2 packet object based on the given data.</p>
|
227
|
+
</div></span>
|
228
|
+
|
229
|
+
</li>
|
230
|
+
|
231
|
+
|
232
|
+
<li class="public ">
|
233
|
+
<span class="summary_signature">
|
234
|
+
|
235
|
+
<a href="#to_s-instance_method" title="#to_s (instance method)">- (String) <strong>to_s</strong> </a>
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
</span>
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
<span class="summary_desc"><div class='inline'><p>Returns the raw data representing this packet.</p>
|
250
|
+
</div></span>
|
251
|
+
|
252
|
+
</li>
|
253
|
+
|
254
|
+
|
255
|
+
</ul>
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
<div id="constructor_details" class="method_details_list">
|
265
|
+
<h2>Constructor Details</h2>
|
266
|
+
|
267
|
+
<div class="method_details first">
|
268
|
+
<h3 class="signature first" id="initialize-instance_method">
|
269
|
+
|
270
|
+
- (<tt><span class='object_link'><a href="" title="S2M_HEARTBEAT2_Packet (class)">S2M_HEARTBEAT2_Packet</a></span></tt>) <strong>initialize</strong>(data = {})
|
271
|
+
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
|
276
|
+
</h3><div class="docstring">
|
277
|
+
<div class="discussion">
|
278
|
+
<p>Creates a new S2M_HEARTBEAT2 packet object based on the given data</p>
|
279
|
+
|
280
|
+
|
281
|
+
</div>
|
282
|
+
</div>
|
283
|
+
<div class="tags">
|
284
|
+
<p class="tag_title">Parameters:</p>
|
285
|
+
<ul class="param">
|
286
|
+
|
287
|
+
<li>
|
288
|
+
|
289
|
+
<span class='name'>data</span>
|
290
|
+
|
291
|
+
|
292
|
+
<span class='type'>(<tt>Hash<Symbol, Object></tt>)</span>
|
293
|
+
|
294
|
+
|
295
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
296
|
+
|
297
|
+
|
298
|
+
—
|
299
|
+
<div class='inline'><p>The data to send with the heartbeat. The
|
300
|
+
data contents are merge with the values from <span class='object_link'><a href="#DEFAULT_DATA-constant" title="S2M_HEARTBEAT2_Packet::DEFAULT_DATA (constant)">DEFAULT_DATA</a></span>.</p>
|
301
|
+
</div>
|
302
|
+
|
303
|
+
</li>
|
304
|
+
|
305
|
+
</ul>
|
306
|
+
|
307
|
+
<p class="tag_title">Raises:</p>
|
308
|
+
<ul class="raise">
|
309
|
+
|
310
|
+
<li>
|
311
|
+
|
312
|
+
|
313
|
+
<span class='type'>(<tt><span class='object_link'><a href="SteamCondenserError.html" title="SteamCondenserError (class)">SteamCondenserError</a></span></tt>)</span>
|
314
|
+
|
315
|
+
|
316
|
+
|
317
|
+
—
|
318
|
+
<div class='inline'><p>when the required challenge number is
|
319
|
+
missing</p>
|
320
|
+
</div>
|
321
|
+
|
322
|
+
</li>
|
323
|
+
|
324
|
+
</ul>
|
325
|
+
|
326
|
+
</div><table class="source_code">
|
327
|
+
<tr>
|
328
|
+
<td>
|
329
|
+
<pre class="lines">
|
330
|
+
|
331
|
+
|
332
|
+
50
|
333
|
+
51
|
334
|
+
52
|
335
|
+
53
|
336
|
+
54
|
337
|
+
55
|
338
|
+
56
|
339
|
+
57
|
340
|
+
58
|
341
|
+
59
|
342
|
+
60
|
343
|
+
61
|
344
|
+
62</pre>
|
345
|
+
</td>
|
346
|
+
<td>
|
347
|
+
<pre class="code"><span class="info file"># File 'lib/steam/packets/s2m_heartbeat2_packet.rb', line 50</span>
|
348
|
+
|
349
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='rubyid_data identifier id'>data</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='rparen token'>)</span>
|
350
|
+
<span class='rubyid_data identifier id'>data</span> <span class='assign token'>=</span> <span class='rubyid_DEFAULT_DATA constant id'>DEFAULT_DATA</span><span class='dot token'>.</span><span class='rubyid_merge identifier id'>merge</span> <span class='rubyid_data identifier id'>data</span>
|
351
|
+
|
352
|
+
<span class='rubyid_if if kw'>if</span> <span class='rubyid_data identifier id'>data</span><span class='lbrack token'>[</span><span class='symbol val'>:challenge</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_nil? fid id'>nil?</span>
|
353
|
+
<span class='rubyid_raise identifier id'>raise</span> <span class='rubyid_SteamCondenserError constant id'>SteamCondenserError</span><span class='comma token'>,</span> <span class='string val'>'You have to provide a challenge number when sending a heartbeat to a master server.'</span>
|
354
|
+
<span class='rubyid_end end kw'>end</span>
|
355
|
+
|
356
|
+
<span class='rubyid_bytes identifier id'>bytes</span> <span class='assign token'>=</span> <span class='integer val'>0x0</span><span class='rubyid_A constant id'>A</span><span class='dot token'>.</span><span class='rubyid_chr identifier id'>chr</span>
|
357
|
+
<span class='rubyid_data identifier id'>data</span><span class='dot token'>.</span><span class='rubyid_each identifier id'>each</span> <span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='rubyid_k identifier id'>k</span><span class='comma token'>,</span> <span class='rubyid_v identifier id'>v</span><span class='bitor op'>|</span> <span class='rubyid_bytes identifier id'>bytes</span> <span class='opasgn op'>+=</span> <span class='dstring node'>"\\#{k}\\#{v}"</span> <span class='rbrace token'>}</span>
|
358
|
+
<span class='rubyid_bytes identifier id'>bytes</span> <span class='opasgn op'>+=</span> <span class='integer val'>0x0</span><span class='rubyid_A constant id'>A</span><span class='dot token'>.</span><span class='rubyid_chr identifier id'>chr</span>
|
359
|
+
|
360
|
+
<span class='rubyid_super super kw'>super</span> <span class='rubyid_S2M_HEARTBEAT2_HEADER constant id'>S2M_HEARTBEAT2_HEADER</span><span class='comma token'>,</span> <span class='rubyid_bytes identifier id'>bytes</span>
|
361
|
+
<span class='rubyid_end end kw'>end</span>
|
362
|
+
</pre>
|
363
|
+
</td>
|
364
|
+
</tr>
|
365
|
+
</table>
|
366
|
+
</div>
|
367
|
+
|
368
|
+
</div>
|
369
|
+
|
370
|
+
|
371
|
+
<div id="instance_method_details" class="method_details_list">
|
372
|
+
<h2>Instance Method Details</h2>
|
373
|
+
|
374
|
+
|
375
|
+
<div class="method_details first">
|
376
|
+
<h3 class="signature first" id="to_s-instance_method">
|
377
|
+
|
378
|
+
- (<tt>String</tt>) <strong>to_s</strong>
|
379
|
+
|
380
|
+
|
381
|
+
|
382
|
+
|
383
|
+
|
384
|
+
</h3><div class="docstring">
|
385
|
+
<div class="discussion">
|
386
|
+
<p>Returns the raw data representing this packet</p>
|
387
|
+
|
388
|
+
|
389
|
+
</div>
|
390
|
+
</div>
|
391
|
+
<div class="tags">
|
392
|
+
|
393
|
+
<p class="tag_title">Returns:</p>
|
394
|
+
<ul class="return">
|
395
|
+
|
396
|
+
<li>
|
397
|
+
|
398
|
+
|
399
|
+
<span class='type'>(<tt>String</tt>)</span>
|
400
|
+
|
401
|
+
|
402
|
+
|
403
|
+
—
|
404
|
+
<div class='inline'><p>A string containing the raw data of this request packet</p>
|
405
|
+
</div>
|
406
|
+
|
407
|
+
</li>
|
408
|
+
|
409
|
+
</ul>
|
410
|
+
|
411
|
+
</div><table class="source_code">
|
412
|
+
<tr>
|
413
|
+
<td>
|
414
|
+
<pre class="lines">
|
415
|
+
|
416
|
+
|
417
|
+
67
|
418
|
+
68
|
419
|
+
69</pre>
|
420
|
+
</td>
|
421
|
+
<td>
|
422
|
+
<pre class="code"><span class="info file"># File 'lib/steam/packets/s2m_heartbeat2_packet.rb', line 67</span>
|
423
|
+
|
424
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_to_s identifier id'>to_s</span>
|
425
|
+
<span class='lbrack token'>[</span><span class='rubyid_@header_data ivar id'>@header_data</span><span class='comma token'>,</span> <span class='rubyid_@content_data ivar id'>@content_data</span><span class='dot token'>.</span><span class='rubyid_string identifier id'>string</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_pack identifier id'>pack</span><span class='lparen token'>(</span><span class='string val'>'ca*'</span><span class='rparen token'>)</span>
|
426
|
+
<span class='rubyid_end end kw'>end</span>
|
427
|
+
</pre>
|
428
|
+
</td>
|
429
|
+
</tr>
|
430
|
+
</table>
|
431
|
+
</div>
|
432
|
+
|
433
|
+
</div>
|
434
|
+
|
435
|
+
</div>
|
436
|
+
|
437
|
+
<div id="footer">
|
438
|
+
Generated on Sat Jul 21 13:09:48 2012 by
|
439
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
440
|
+
0.8.2.1 (ruby-1.8.7).
|
441
|
+
</div>
|
442
|
+
|
443
|
+
</body>
|
444
|
+
</html>
|