steam-condenser 1.3.8.1 → 1.3.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +48 -0
- data/doc/A2M_GET_SERVERS_BATCH2_Packet.html +1 -1
- data/doc/A2S_INFO_Packet.html +1 -1
- data/doc/A2S_PLAYER_Packet.html +1 -1
- data/doc/A2S_RULES_Packet.html +1 -1
- data/doc/A2S_SERVERQUERY_GETCHALLENGE_Packet.html +1 -1
- data/doc/AbstractL4DStats.html +1 -1
- data/doc/AbstractL4DWeapon.html +1 -1
- data/doc/AlienSwarmMission.html +1 -1
- data/doc/AlienSwarmStats.html +1 -1
- data/doc/AlienSwarmWeapon.html +1 -1
- data/doc/AppNews.html +1 -1
- data/doc/C2M_CHECKMD5_Packet.html +1 -1
- data/doc/CSSMap.html +1 -1
- data/doc/CSSStats.html +1 -1
- data/doc/CSSWeapon.html +1 -1
- data/doc/Cacheable.html +1 -1
- data/doc/Cacheable/ClassMethods.html +1 -1
- data/doc/DefenseGridStats.html +1 -1
- data/doc/DoDSClass.html +1 -1
- data/doc/DoDSStats.html +1 -1
- data/doc/DoDSWeapon.html +1 -1
- data/doc/Dota2BetaInventory.html +1 -1
- data/doc/Dota2Inventory.html +1 -1
- data/doc/Dota2Item.html +1 -1
- data/doc/GameAchievement.html +1 -1
- data/doc/GameClass.html +1 -1
- data/doc/GameInventory.html +1 -1
- data/doc/GameItem.html +1 -1
- data/doc/GameItemSchema.html +1 -1
- data/doc/GameLeaderboard.html +1 -1
- data/doc/GameLeaderboardEntry.html +1 -1
- data/doc/GameServer.html +1 -1
- data/doc/GameStats.html +1 -1
- data/doc/GameWeapon.html +1 -1
- data/doc/GoldSrcServer.html +1 -1
- data/doc/GoldSrcSocket.html +1 -1
- data/doc/L4D2Map.html +1 -1
- data/doc/L4D2Stats.html +1 -1
- data/doc/L4D2Weapon.html +1 -1
- data/doc/L4DExplosive.html +1 -1
- data/doc/L4DMap.html +1 -1
- data/doc/L4DStats.html +1 -1
- data/doc/L4DWeapon.html +1 -1
- data/doc/M2A_SERVER_BATCH_Packet.html +1 -1
- data/doc/M2C_ISVALIDMD5_Packet.html +1 -1
- data/doc/M2S_REQUESTRESTART_Packet.html +1 -1
- data/doc/MasterServer.html +1 -1
- data/doc/MasterServerSocket.html +1 -1
- data/doc/PacketFormatError.html +1 -1
- data/doc/Portal2Inventory.html +1 -1
- data/doc/Portal2Item.html +1 -1
- data/doc/Portal2Stats.html +1 -1
- data/doc/RCONAuthRequest.html +1 -1
- data/doc/RCONAuthResponse.html +1 -1
- data/doc/RCONBanError.html +1 -1
- data/doc/RCONExecRequest.html +1 -1
- data/doc/RCONExecResponse.html +1 -1
- data/doc/RCONGoldSrcRequest.html +1 -1
- data/doc/RCONGoldSrcResponse.html +1 -1
- data/doc/RCONNoAuthError.html +1 -1
- data/doc/RCONPacket.html +1 -1
- data/doc/RCONPacketFactory.html +1 -1
- data/doc/RCONSocket.html +13 -5
- data/doc/RCONTerminator.html +1 -1
- data/doc/RequestWithChallenge.html +1 -1
- data/doc/S2A_INFO2_Packet.html +1 -1
- data/doc/S2A_INFO_BasePacket.html +1 -1
- data/doc/S2A_INFO_DETAILED_Packet.html +1 -1
- data/doc/S2A_LOGSTRING_Packet.html +1 -1
- data/doc/S2A_PLAYER_Packet.html +1 -1
- data/doc/S2A_RULES_Packet.html +1 -1
- data/doc/S2C_CHALLENGE_Packet.html +1 -1
- data/doc/S2M_HEARTBEAT2_Packet.html +1 -1
- data/doc/Server.html +1 -1
- data/doc/SourceServer.html +33 -34
- data/doc/SourceSocket.html +1 -1
- data/doc/SteamCondenser.html +2 -2
- data/doc/SteamCondenser/Community.html +1 -1
- data/doc/SteamCondenser/Servers.html +1 -1
- data/doc/SteamCondenser/TimeoutError.html +1 -1
- data/doc/SteamCondenserError.html +1 -1
- data/doc/SteamGame.html +1 -1
- data/doc/SteamGroup.html +1 -1
- data/doc/SteamId.html +1 -1
- data/doc/SteamPacket.html +1 -1
- data/doc/SteamPacketFactory.html +1 -1
- data/doc/SteamPlayer.html +1 -1
- data/doc/SteamSocket.html +1 -1
- data/doc/StringIO.html +1 -1
- data/doc/TF2BetaInventory.html +1 -1
- data/doc/TF2Class.html +1 -1
- data/doc/TF2ClassFactory.html +1 -1
- data/doc/TF2Engineer.html +1 -1
- data/doc/TF2GoldenWrench.html +1 -1
- data/doc/TF2Inventory.html +1 -1
- data/doc/TF2Item.html +1 -1
- data/doc/TF2Medic.html +1 -1
- data/doc/TF2Sniper.html +1 -1
- data/doc/TF2Spy.html +1 -1
- data/doc/TF2Stats.html +1 -1
- data/doc/WebApi.html +1 -1
- data/doc/WebApiError.html +1 -1
- data/doc/XMLData.html +1 -1
- data/doc/_index.html +1 -1
- data/doc/file.CHANGELOG.html +20 -1
- data/doc/file.CONTRIBUTING.html +1 -1
- data/doc/file.LICENSE.html +1 -1
- data/doc/file.README.html +1 -1
- data/doc/index.html +1 -1
- data/doc/top-level-namespace.html +1 -1
- data/lib/steam-condenser/version.rb +2 -2
- data/lib/steam/servers/source_server.rb +13 -20
- data/lib/steam/sockets/rcon_socket.rb +7 -3
- data/pkg/steam-condenser-1.3.8.1.gem +0 -0
- data/pkg/steam-condenser-1.3.8.1/CHANGELOG.md +233 -0
- data/pkg/steam-condenser-1.3.8.1/CONTRIBUTING.md +59 -0
- data/pkg/steam-condenser-1.3.8.1/Gemfile +11 -0
- data/pkg/steam-condenser-1.3.8.1/LICENSE +25 -0
- data/pkg/steam-condenser-1.3.8.1/README.md +75 -0
- data/pkg/steam-condenser-1.3.8.1/Rakefile +46 -0
- data/pkg/steam-condenser-1.3.8.1/doc/A2M_GET_SERVERS_BATCH2_Packet.html +446 -0
- data/pkg/steam-condenser-1.3.8.1/doc/A2S_INFO_Packet.html +264 -0
- data/pkg/steam-condenser-1.3.8.1/doc/A2S_PLAYER_Packet.html +300 -0
- data/pkg/steam-condenser-1.3.8.1/doc/A2S_RULES_Packet.html +302 -0
- data/pkg/steam-condenser-1.3.8.1/doc/A2S_SERVERQUERY_GETCHALLENGE_Packet.html +266 -0
- data/pkg/steam-condenser-1.3.8.1/doc/AbstractL4DStats.html +1033 -0
- data/pkg/steam-condenser-1.3.8.1/doc/AbstractL4DWeapon.html +752 -0
- data/pkg/steam-condenser-1.3.8.1/doc/AlienSwarmMission.html +1598 -0
- data/pkg/steam-condenser-1.3.8.1/doc/AlienSwarmStats.html +1035 -0
- data/pkg/steam-condenser-1.3.8.1/doc/AlienSwarmWeapon.html +653 -0
- data/pkg/steam-condenser-1.3.8.1/doc/AppNews.html +1489 -0
- data/pkg/steam-condenser-1.3.8.1/doc/C2M_CHECKMD5_Packet.html +347 -0
- data/pkg/steam-condenser-1.3.8.1/doc/CSSMap.html +824 -0
- data/pkg/steam-condenser-1.3.8.1/doc/CSSStats.html +888 -0
- data/pkg/steam-condenser-1.3.8.1/doc/CSSWeapon.html +910 -0
- data/pkg/steam-condenser-1.3.8.1/doc/Cacheable.html +942 -0
- data/pkg/steam-condenser-1.3.8.1/doc/Cacheable/ClassMethods.html +721 -0
- data/pkg/steam-condenser-1.3.8.1/doc/DefenseGridStats.html +2659 -0
- data/pkg/steam-condenser-1.3.8.1/doc/DoDSClass.html +1291 -0
- data/pkg/steam-condenser-1.3.8.1/doc/DoDSStats.html +537 -0
- data/pkg/steam-condenser-1.3.8.1/doc/DoDSWeapon.html +824 -0
- data/pkg/steam-condenser-1.3.8.1/doc/Dota2BetaInventory.html +363 -0
- data/pkg/steam-condenser-1.3.8.1/doc/Dota2Inventory.html +363 -0
- data/pkg/steam-condenser-1.3.8.1/doc/Dota2Item.html +396 -0
- data/pkg/steam-condenser-1.3.8.1/doc/GameAchievement.html +1292 -0
- data/pkg/steam-condenser-1.3.8.1/doc/GameClass.html +328 -0
- data/pkg/steam-condenser-1.3.8.1/doc/GameInventory.html +1512 -0
- data/pkg/steam-condenser-1.3.8.1/doc/GameItem.html +1926 -0
- data/pkg/steam-condenser-1.3.8.1/doc/GameItemSchema.html +1477 -0
- data/pkg/steam-condenser-1.3.8.1/doc/GameLeaderboard.html +1741 -0
- data/pkg/steam-condenser-1.3.8.1/doc/GameLeaderboardEntry.html +642 -0
- data/pkg/steam-condenser-1.3.8.1/doc/GameServer.html +2495 -0
- data/pkg/steam-condenser-1.3.8.1/doc/GameStats.html +1501 -0
- data/pkg/steam-condenser-1.3.8.1/doc/GameWeapon.html +603 -0
- data/pkg/steam-condenser-1.3.8.1/doc/GoldSrcServer.html +766 -0
- data/pkg/steam-condenser-1.3.8.1/doc/GoldSrcSocket.html +874 -0
- data/pkg/steam-condenser-1.3.8.1/doc/L4D2Map.html +758 -0
- data/pkg/steam-condenser-1.3.8.1/doc/L4D2Stats.html +1020 -0
- data/pkg/steam-condenser-1.3.8.1/doc/L4D2Weapon.html +496 -0
- data/pkg/steam-condenser-1.3.8.1/doc/L4DExplosive.html +383 -0
- data/pkg/steam-condenser-1.3.8.1/doc/L4DMap.html +789 -0
- data/pkg/steam-condenser-1.3.8.1/doc/L4DStats.html +579 -0
- data/pkg/steam-condenser-1.3.8.1/doc/L4DWeapon.html +302 -0
- data/pkg/steam-condenser-1.3.8.1/doc/M2A_SERVER_BATCH_Packet.html +439 -0
- data/pkg/steam-condenser-1.3.8.1/doc/M2C_ISVALIDMD5_Packet.html +390 -0
- data/pkg/steam-condenser-1.3.8.1/doc/M2S_REQUESTRESTART_Packet.html +390 -0
- data/pkg/steam-condenser-1.3.8.1/doc/MasterServer.html +1104 -0
- data/pkg/steam-condenser-1.3.8.1/doc/MasterServerSocket.html +300 -0
- data/pkg/steam-condenser-1.3.8.1/doc/PacketFormatError.html +176 -0
- data/pkg/steam-condenser-1.3.8.1/doc/Portal2Inventory.html +363 -0
- data/pkg/steam-condenser-1.3.8.1/doc/Portal2Item.html +616 -0
- data/pkg/steam-condenser-1.3.8.1/doc/Portal2Stats.html +413 -0
- data/pkg/steam-condenser-1.3.8.1/doc/RCONAuthRequest.html +325 -0
- data/pkg/steam-condenser-1.3.8.1/doc/RCONAuthResponse.html +312 -0
- data/pkg/steam-condenser-1.3.8.1/doc/RCONBanError.html +257 -0
- data/pkg/steam-condenser-1.3.8.1/doc/RCONExecRequest.html +325 -0
- data/pkg/steam-condenser-1.3.8.1/doc/RCONExecResponse.html +416 -0
- data/pkg/steam-condenser-1.3.8.1/doc/RCONGoldSrcRequest.html +369 -0
- data/pkg/steam-condenser-1.3.8.1/doc/RCONGoldSrcResponse.html +375 -0
- data/pkg/steam-condenser-1.3.8.1/doc/RCONNoAuthError.html +256 -0
- data/pkg/steam-condenser-1.3.8.1/doc/RCONPacket.html +561 -0
- data/pkg/steam-condenser-1.3.8.1/doc/RCONPacketFactory.html +308 -0
- data/pkg/steam-condenser-1.3.8.1/doc/RCONSocket.html +725 -0
- data/pkg/steam-condenser-1.3.8.1/doc/RCONTerminator.html +312 -0
- data/pkg/steam-condenser-1.3.8.1/doc/RequestWithChallenge.html +238 -0
- data/pkg/steam-condenser-1.3.8.1/doc/S2A_INFO2_Packet.html +417 -0
- data/pkg/steam-condenser-1.3.8.1/doc/S2A_INFO_BasePacket.html +271 -0
- data/pkg/steam-condenser-1.3.8.1/doc/S2A_INFO_DETAILED_Packet.html +378 -0
- data/pkg/steam-condenser-1.3.8.1/doc/S2A_LOGSTRING_Packet.html +379 -0
- data/pkg/steam-condenser-1.3.8.1/doc/S2A_PLAYER_Packet.html +424 -0
- data/pkg/steam-condenser-1.3.8.1/doc/S2A_RULES_Packet.html +418 -0
- data/pkg/steam-condenser-1.3.8.1/doc/S2C_CHALLENGE_Packet.html +378 -0
- data/pkg/steam-condenser-1.3.8.1/doc/S2M_HEARTBEAT2_Packet.html +455 -0
- data/pkg/steam-condenser-1.3.8.1/doc/Server.html +886 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SourceServer.html +920 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SourceSocket.html +359 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser.html +157 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community.html +138 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/AbstractL4DStats.html +1026 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/AbstractL4DWeapon.html +749 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/AlienSwarmMission.html +1557 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/AlienSwarmStats.html +1013 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/AlienSwarmWeapon.html +641 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/AppNews.html +1441 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/CSSMap.html +805 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/CSSStats.html +866 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/CSSWeapon.html +889 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/Cacheable.html +911 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/Cacheable/ClassMethods.html +695 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/DefenseGridStats.html +2593 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/DoDSClass.html +1263 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/DoDSStats.html +520 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/DoDSWeapon.html +803 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/Dota2BetaInventory.html +354 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/Dota2Inventory.html +354 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/Dota2Item.html +388 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/Dota2Match.html +505 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/GameAchievement.html +1100 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/GameClass.html +321 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/GameInventory.html +1469 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/GameItem.html +1900 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/GameItemSchema.html +1444 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/GameLeaderboard.html +1707 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/GameLeaderboardEntry.html +630 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/GameStats.html +1461 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/GameStatsSchema.html +771 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/GameStatsValue.html +596 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/GameStatsValue/Instance.html +262 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/GameWeapon.html +608 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/L4D2Map.html +737 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/L4D2Stats.html +989 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/L4D2Weapon.html +486 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/L4DExplosive.html +375 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/L4DMap.html +775 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/L4DStats.html +564 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/L4DWeapon.html +296 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/Portal2Inventory.html +354 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/Portal2Item.html +603 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/Portal2Stats.html +400 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/SteamGame.html +1862 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/SteamGroup.html +1018 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/SteamId.html +4430 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/TF2BetaInventory.html +345 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/TF2Class.html +1186 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/TF2ClassFactory.html +273 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/TF2Engineer.html +555 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/TF2GoldenWrench.html +760 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/TF2Inventory.html +354 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/TF2Item.html +602 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/TF2Medic.html +463 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/TF2Sniper.html +372 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/TF2Spy.html +553 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/TF2Stats.html +728 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/UserStats.html +760 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/WebApi.html +1116 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Community/XMLData.html +274 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Error.html +380 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Error/PacketFormat.html +173 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Error/RCONBan.html +253 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Error/RCONNoAuth.html +252 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Error/Timeout.html +254 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Error/WebApi.html +354 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Logging.html +616 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers.html +137 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/BaseServer.html +870 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/GameServer.html +2428 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/GoldSrcServer.html +738 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/MasterServer.html +819 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets.html +132 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets/A2M_GET_SERVERS_BATCH2_Packet.html +427 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets/A2S_INFO_Packet.html +260 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets/A2S_PLAYER_Packet.html +295 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets/A2S_RULES_Packet.html +296 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets/A2S_SERVERQUERY_GETCHALLENGE_Packet.html +261 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets/BasePacket.html +462 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets/M2A_SERVER_BATCH_Packet.html +430 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets/RCON.html +119 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets/RCON/BasePacket.html +564 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets/RCON/RCONAuthRequest.html +317 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets/RCON/RCONAuthResponse.html +305 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets/RCON/RCONExecRequest.html +317 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets/RCON/RCONExecResponse.html +406 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets/RCON/RCONGoldSrcRequest.html +363 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets/RCON/RCONGoldSrcResponse.html +368 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets/RCON/RCONPacketFactory.html +302 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets/RCON/RCONTerminator.html +304 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets/RequestWithChallenge.html +233 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets/S2A_INFO2_Packet.html +416 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets/S2A_INFO_BasePacket.html +266 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets/S2A_INFO_DETAILED_Packet.html +371 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets/S2A_LOGSTRING_Packet.html +373 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets/S2A_PLAYER_Packet.html +417 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets/S2A_RULES_Packet.html +411 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets/S2C_CHALLENGE_Packet.html +370 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Packets/SteamPacketFactory.html +532 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Sockets.html +119 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Sockets/BaseSocket.html +733 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Sockets/GoldSrcSocket.html +862 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Sockets/MasterServerSocket.html +306 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Sockets/RCONSocket.html +709 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/Sockets/SourceSocket.html +367 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/SourceServer.html +892 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/Servers/SteamPlayer.html +1764 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenser/TimeoutError.html +260 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamCondenserError.html +378 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamGame.html +2001 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamGroup.html +1587 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamId.html +4428 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamPacket.html +457 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamPacketFactory.html +574 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamPlayer.html +1808 -0
- data/pkg/steam-condenser-1.3.8.1/doc/SteamSocket.html +728 -0
- data/pkg/steam-condenser-1.3.8.1/doc/StringIO.html +986 -0
- data/pkg/steam-condenser-1.3.8.1/doc/TF2BetaInventory.html +338 -0
- data/pkg/steam-condenser-1.3.8.1/doc/TF2Class.html +1228 -0
- data/pkg/steam-condenser-1.3.8.1/doc/TF2ClassFactory.html +281 -0
- data/pkg/steam-condenser-1.3.8.1/doc/TF2Engineer.html +572 -0
- data/pkg/steam-condenser-1.3.8.1/doc/TF2GoldenWrench.html +776 -0
- data/pkg/steam-condenser-1.3.8.1/doc/TF2Inventory.html +363 -0
- data/pkg/steam-condenser-1.3.8.1/doc/TF2Item.html +617 -0
- data/pkg/steam-condenser-1.3.8.1/doc/TF2Medic.html +476 -0
- data/pkg/steam-condenser-1.3.8.1/doc/TF2Sniper.html +381 -0
- data/pkg/steam-condenser-1.3.8.1/doc/TF2Spy.html +567 -0
- data/pkg/steam-condenser-1.3.8.1/doc/TF2Stats.html +751 -0
- data/pkg/steam-condenser-1.3.8.1/doc/WebApi.html +1156 -0
- data/pkg/steam-condenser-1.3.8.1/doc/WebApiError.html +375 -0
- data/pkg/steam-condenser-1.3.8.1/doc/XMLData.html +280 -0
- data/pkg/steam-condenser-1.3.8.1/doc/_index.html +728 -0
- data/pkg/steam-condenser-1.3.8.1/doc/class_list.html +54 -0
- data/pkg/steam-condenser-1.3.8.1/doc/css/common.css +1 -0
- data/pkg/steam-condenser-1.3.8.1/doc/css/full_list.css +57 -0
- data/pkg/steam-condenser-1.3.8.1/doc/css/style.css +338 -0
- data/pkg/steam-condenser-1.3.8.1/doc/file.CHANGELOG.html +472 -0
- data/pkg/steam-condenser-1.3.8.1/doc/file.CONTRIBUTING.html +156 -0
- data/pkg/steam-condenser-1.3.8.1/doc/file.LICENSE.html +118 -0
- data/pkg/steam-condenser-1.3.8.1/doc/file.README.html +179 -0
- data/pkg/steam-condenser-1.3.8.1/doc/file_list.html +65 -0
- data/pkg/steam-condenser-1.3.8.1/doc/frames.html +26 -0
- data/pkg/steam-condenser-1.3.8.1/doc/index.html +179 -0
- data/pkg/steam-condenser-1.3.8.1/doc/js/app.js +219 -0
- data/pkg/steam-condenser-1.3.8.1/doc/js/full_list.js +178 -0
- data/pkg/steam-condenser-1.3.8.1/doc/js/jquery.js +4 -0
- data/pkg/steam-condenser-1.3.8.1/doc/method_list.html +3191 -0
- data/pkg/steam-condenser-1.3.8.1/doc/top-level-namespace.html +114 -0
- data/pkg/steam-condenser-1.3.8.1/lib/core_ext/stringio.rb +93 -0
- data/pkg/steam-condenser-1.3.8.1/lib/errors/packet_format_error.rb +13 -0
- data/pkg/steam-condenser-1.3.8.1/lib/errors/rcon_ban_error.rb +22 -0
- data/pkg/steam-condenser-1.3.8.1/lib/errors/rcon_no_auth_error.rb +21 -0
- data/pkg/steam-condenser-1.3.8.1/lib/errors/steam_condenser_error.rb +26 -0
- data/pkg/steam-condenser-1.3.8.1/lib/errors/timeout_error.rb +28 -0
- data/pkg/steam-condenser-1.3.8.1/lib/errors/web_api_error.rb +57 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam-condenser.rb +18 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam-condenser/community.rb +24 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam-condenser/servers.rb +24 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam-condenser/version.rb +11 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/alien_swarm/alien_swarm_mission.rb +120 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/alien_swarm/alien_swarm_stats.rb +188 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/alien_swarm/alien_swarm_weapon.rb +49 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/app_news.rb +133 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/cacheable.rb +199 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/css/css_map.rb +61 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/css/css_stats.rb +140 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/css/css_weapon.rb +69 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/defense_grid/defense_grid_stats.rb +238 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/dods/dods_class.rb +90 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/dods/dods_stats.rb +62 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/dods/dods_weapon.rb +67 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/dota2/dota2_beta_inventory.rb +30 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/dota2/dota2_inventory.rb +30 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/dota2/dota2_item.rb +33 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/game_achievement.rb +109 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/game_class.rb +22 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/game_inventory.rb +171 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/game_item.rb +155 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/game_item_schema.rb +131 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/game_leaderboard.rb +212 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/game_leaderboard_entry.rb +43 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/game_stats.rb +175 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/game_weapon.rb +41 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/l4d/abstract_l4d_stats.rb +188 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/l4d/abstract_l4d_weapon.rb +56 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/l4d/l4d2_map.rb +90 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/l4d/l4d2_stats.rb +179 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/l4d/l4d2_weapon.rb +38 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/l4d/l4d_explosive.rb +34 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/l4d/l4d_map.rb +65 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/l4d/l4d_stats.rb +73 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/l4d/l4d_weapon.rb +26 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/portal2/portal2_inventory.rb +30 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/portal2/portal2_item.rb +55 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/portal2/portal2_stats.rb +33 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/steam_game.rb +193 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/steam_group.rb +176 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/steam_id.rb +496 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/tf2/tf2_beta_inventory.rb +28 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/tf2/tf2_class.rb +92 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/tf2/tf2_class_factory.rb +40 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/tf2/tf2_engineer.rb +43 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/tf2/tf2_golden_wrench.rb +70 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/tf2/tf2_inventory.rb +30 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/tf2/tf2_item.rb +55 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/tf2/tf2_medic.rb +35 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/tf2/tf2_sniper.rb +28 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/tf2/tf2_spy.rb +41 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/tf2/tf2_stats.rb +77 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/web_api.rb +139 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/community/xml_data.rb +27 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/a2m_get_servers_batch2_packet.rb +59 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/a2s_info_packet.rb +24 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/a2s_player_packet.rb +31 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/a2s_rules_packet.rb +32 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/a2s_serverquery_getchallenge_packet.rb +25 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/c2m_checkmd5_packet.rb +31 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/m2a_server_batch_packet.rb +52 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/m2c_isvalidmd5_packet.rb +34 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/m2s_requestrestart_packet.rb +34 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/rcon/rcon_auth_request.rb +28 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/rcon/rcon_auth_response.rb +30 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/rcon/rcon_exec_request.rb +28 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/rcon/rcon_exec_response.rb +37 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/rcon/rcon_goldsrc_request.rb +35 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/rcon/rcon_goldsrc_response.rb +34 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/rcon/rcon_packet.rb +57 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/rcon/rcon_packet_factory.rb +43 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/rcon/rcon_terminator.rb +29 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/request_with_challenge.rb +19 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/s2a_info2_packet.rb +76 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/s2a_info_base_packet.rb +25 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/s2a_info_detailed_packet.rb +64 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/s2a_logstring_packet.rb +30 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/s2a_player_packet.rb +44 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/s2a_rules_packet.rb +48 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/s2c_challenge_packet.rb +35 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/s2m_heartbeat2_packet.rb +72 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/steam_packet.rb +52 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/packets/steam_packet_factory.rb +113 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/servers/game_server.rb +393 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/servers/goldsrc_server.rb +74 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/servers/master_server.rb +188 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/servers/server.rb +115 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/servers/source_server.rb +123 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/sockets/goldsrc_socket.rb +142 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/sockets/master_server_socket.rb +34 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/sockets/rcon_socket.rb +103 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/sockets/source_socket.rb +73 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/sockets/steam_socket.rb +91 -0
- data/pkg/steam-condenser-1.3.8.1/lib/steam/steam_player.rb +143 -0
- data/pkg/steam-condenser-1.3.8.1/steam-condenser.gemspec +25 -0
- data/pkg/steam-condenser-1.3.8.1/test/core_ext/test_stringio.rb +59 -0
- data/pkg/steam-condenser-1.3.8.1/test/fixtures/invalid.xml +2 -0
- data/pkg/steam-condenser-1.3.8.1/test/fixtures/sonofthor.xml +882 -0
- data/pkg/steam-condenser-1.3.8.1/test/fixtures/status_goldsrc +3 -0
- data/pkg/steam-condenser-1.3.8.1/test/fixtures/status_source +3 -0
- data/pkg/steam-condenser-1.3.8.1/test/fixtures/valve-members.xml +261 -0
- data/pkg/steam-condenser-1.3.8.1/test/helper.rb +48 -0
- data/pkg/steam-condenser-1.3.8.1/test/steam/community/test_cacheable.rb +103 -0
- data/pkg/steam-condenser-1.3.8.1/test/steam/community/test_steam_group.rb +94 -0
- data/pkg/steam-condenser-1.3.8.1/test/steam/community/test_steam_id.rb +144 -0
- data/pkg/steam-condenser-1.3.8.1/test/steam/community/test_web_api.rb +124 -0
- data/pkg/steam-condenser-1.3.8.1/test/steam/packets/test_steam_packet.rb +37 -0
- data/pkg/steam-condenser-1.3.8.1/test/steam/servers/test_game_server.rb +296 -0
- data/pkg/steam-condenser-1.3.8.1/test/steam/servers/test_goldsrc_server.rb +59 -0
- data/pkg/steam-condenser-1.3.8.1/test/steam/servers/test_master_server.rb +131 -0
- data/pkg/steam-condenser-1.3.8.1/test/steam/servers/test_server.rb +72 -0
- data/pkg/steam-condenser-1.3.8.1/test/steam/servers/test_source_server.rb +145 -0
- data/pkg/steam-condenser-1.3.8.1/test/steam/sockets/test_goldsrc_socket.rb +127 -0
- data/pkg/steam-condenser-1.3.8.1/test/steam/sockets/test_master_server_socket.rb +42 -0
- data/pkg/steam-condenser-1.3.8.1/test/steam/sockets/test_rcon_socket.rb +118 -0
- data/pkg/steam-condenser-1.3.8.1/test/steam/sockets/test_source_socket.rb +77 -0
- data/pkg/steam-condenser-1.3.8.1/test/steam/sockets/test_steam_socket.rb +97 -0
- data/test/steam/sockets/test_rcon_socket.rb +3 -7
- metadata +360 -2
@@ -0,0 +1,886 @@
|
|
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
|
+
Module: Server
|
8
|
+
|
9
|
+
— Metior — API Documentation
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" 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">Server</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>Module: Server
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</h1>
|
71
|
+
|
72
|
+
<dl class="box">
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
<dt class="r1">Included in:</dt>
|
81
|
+
<dd class="r1"><span class='object_link'><a href="GameServer.html" title="GameServer (module)">GameServer</a></span>, <span class='object_link'><a href="MasterServer.html" title="MasterServer (class)">MasterServer</a></span></dd>
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
<dt class="r2 last">Defined in:</dt>
|
86
|
+
<dd class="r2 last">lib/steam/servers/server.rb</dd>
|
87
|
+
|
88
|
+
</dl>
|
89
|
+
<div class="clear"></div>
|
90
|
+
|
91
|
+
<h2>Overview</h2><div class="docstring">
|
92
|
+
<div class="discussion">
|
93
|
+
|
94
|
+
<p>This module is included by all classes implementing server functionality</p>
|
95
|
+
|
96
|
+
<p>It provides basic name resolution features and the ability to rotate
|
97
|
+
between
|
98
|
+
different IP addresses belonging to a single DNS name.</p>
|
99
|
+
|
100
|
+
|
101
|
+
</div>
|
102
|
+
</div>
|
103
|
+
<div class="tags">
|
104
|
+
|
105
|
+
<p class="tag_title">Author:</p>
|
106
|
+
<ul class="author">
|
107
|
+
|
108
|
+
<li>
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
<div class='inline'>
|
115
|
+
<p>Sebastian Staudt</p>
|
116
|
+
</div>
|
117
|
+
|
118
|
+
</li>
|
119
|
+
|
120
|
+
</ul>
|
121
|
+
|
122
|
+
</div>
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
127
|
+
<ul class="summary">
|
128
|
+
|
129
|
+
<li class="public ">
|
130
|
+
<span class="summary_signature">
|
131
|
+
|
132
|
+
<a href="#host_names-instance_method" title="#host_names (instance method)">- (Array<String>) <strong>host_names</strong> </a>
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
</span>
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
<span class="note title readonly">readonly</span>
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
<span class="summary_desc"><div class='inline'>
|
152
|
+
<p>Returns a list of host names associated with this server.</p>
|
153
|
+
</div></span>
|
154
|
+
|
155
|
+
</li>
|
156
|
+
|
157
|
+
|
158
|
+
<li class="public ">
|
159
|
+
<span class="summary_signature">
|
160
|
+
|
161
|
+
<a href="#ip_addresses-instance_method" title="#ip_addresses (instance method)">- (Array<String>) <strong>ip_addresses</strong> </a>
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
</span>
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
<span class="note title readonly">readonly</span>
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
<span class="summary_desc"><div class='inline'>
|
181
|
+
<p>Returns a list of IP addresses associated with this server.</p>
|
182
|
+
</div></span>
|
183
|
+
|
184
|
+
</li>
|
185
|
+
|
186
|
+
|
187
|
+
</ul>
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
<h2>
|
194
|
+
Instance Method Summary
|
195
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
196
|
+
</h2>
|
197
|
+
|
198
|
+
<ul class="summary">
|
199
|
+
|
200
|
+
<li class="public ">
|
201
|
+
<span class="summary_signature">
|
202
|
+
|
203
|
+
<a href="#disconnect-instance_method" title="#disconnect (instance method)">- (Object) <strong>disconnect</strong> </a>
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
</span>
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
<span class="summary_desc"><div class='inline'>
|
218
|
+
<p>Disconnect the connections to this server.</p>
|
219
|
+
</div></span>
|
220
|
+
|
221
|
+
</li>
|
222
|
+
|
223
|
+
|
224
|
+
<li class="protected ">
|
225
|
+
<span class="summary_signature">
|
226
|
+
|
227
|
+
<a href="#failsafe-instance_method" title="#failsafe (instance method)">- (Object) <strong>failsafe</strong>(&proc) </a>
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
</span>
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
<span class="note title protected">protected</span>
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
<span class="summary_desc"><div class='inline'>
|
242
|
+
<p>Execute an action in the context of this server's current IP address.</p>
|
243
|
+
</div></span>
|
244
|
+
|
245
|
+
</li>
|
246
|
+
|
247
|
+
|
248
|
+
<li class="protected ">
|
249
|
+
<span class="summary_signature">
|
250
|
+
|
251
|
+
<a href="#init_socket-instance_method" title="#init_socket (instance method)">- (Object) <strong>init_socket</strong> </a>
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
</span>
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
<span class="note title protected">protected</span>
|
260
|
+
<span class="abstract note title">abstract</span>
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
<span class="summary_desc"><div class='inline'>
|
266
|
+
<p>Initializes the socket(s) to communicate with the server.</p>
|
267
|
+
</div></span>
|
268
|
+
|
269
|
+
</li>
|
270
|
+
|
271
|
+
|
272
|
+
<li class="public ">
|
273
|
+
<span class="summary_signature">
|
274
|
+
|
275
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">- (Object) <strong>initialize</strong>(address, port = nil) </a>
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
</span>
|
280
|
+
|
281
|
+
|
282
|
+
|
283
|
+
|
284
|
+
|
285
|
+
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
<span class="summary_desc"><div class='inline'>
|
290
|
+
<p>Creates a new server instance with the given address and port.</p>
|
291
|
+
</div></span>
|
292
|
+
|
293
|
+
</li>
|
294
|
+
|
295
|
+
|
296
|
+
<li class="public ">
|
297
|
+
<span class="summary_signature">
|
298
|
+
|
299
|
+
<a href="#rotate_ip-instance_method" title="#rotate_ip (instance method)">- (Boolean) <strong>rotate_ip</strong> </a>
|
300
|
+
|
301
|
+
|
302
|
+
|
303
|
+
</span>
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
|
308
|
+
|
309
|
+
|
310
|
+
|
311
|
+
|
312
|
+
|
313
|
+
<span class="summary_desc"><div class='inline'>
|
314
|
+
<p>Rotate this server's IP address to the next one in the IP list.</p>
|
315
|
+
</div></span>
|
316
|
+
|
317
|
+
</li>
|
318
|
+
|
319
|
+
|
320
|
+
</ul>
|
321
|
+
|
322
|
+
|
323
|
+
|
324
|
+
<div id="instance_attr_details" class="attr_details">
|
325
|
+
<h2>Instance Attribute Details</h2>
|
326
|
+
|
327
|
+
|
328
|
+
<span id=""></span>
|
329
|
+
<div class="method_details first">
|
330
|
+
<h3 class="signature first" id="host_names-instance_method">
|
331
|
+
|
332
|
+
- (<tt>Array<String></tt>) <strong>host_names</strong> <span class="extras">(readonly)</span>
|
333
|
+
|
334
|
+
|
335
|
+
|
336
|
+
|
337
|
+
|
338
|
+
</h3><div class="docstring">
|
339
|
+
<div class="discussion">
|
340
|
+
|
341
|
+
<p>Returns a list of host names associated with this server</p>
|
342
|
+
|
343
|
+
|
344
|
+
</div>
|
345
|
+
</div>
|
346
|
+
<div class="tags">
|
347
|
+
|
348
|
+
<p class="tag_title">Returns:</p>
|
349
|
+
<ul class="return">
|
350
|
+
|
351
|
+
<li>
|
352
|
+
|
353
|
+
|
354
|
+
<span class='type'>(<tt>Array<String></tt>)</span>
|
355
|
+
|
356
|
+
|
357
|
+
|
358
|
+
—
|
359
|
+
<div class='inline'>
|
360
|
+
<p>The host names of this server</p>
|
361
|
+
</div>
|
362
|
+
|
363
|
+
</li>
|
364
|
+
|
365
|
+
</ul>
|
366
|
+
|
367
|
+
</div><table class="source_code">
|
368
|
+
<tr>
|
369
|
+
<td>
|
370
|
+
<pre class="lines">
|
371
|
+
|
372
|
+
|
373
|
+
19
|
374
|
+
20
|
375
|
+
21</pre>
|
376
|
+
</td>
|
377
|
+
<td>
|
378
|
+
<pre class="code"><span class="info file"># File 'lib/steam/servers/server.rb', line 19</span>
|
379
|
+
|
380
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_host_names'>host_names</span>
|
381
|
+
<span class='ivar'>@host_names</span>
|
382
|
+
<span class='kw'>end</span></pre>
|
383
|
+
</td>
|
384
|
+
</tr>
|
385
|
+
</table>
|
386
|
+
</div>
|
387
|
+
|
388
|
+
|
389
|
+
<span id=""></span>
|
390
|
+
<div class="method_details ">
|
391
|
+
<h3 class="signature " id="ip_addresses-instance_method">
|
392
|
+
|
393
|
+
- (<tt>Array<String></tt>) <strong>ip_addresses</strong> <span class="extras">(readonly)</span>
|
394
|
+
|
395
|
+
|
396
|
+
|
397
|
+
|
398
|
+
|
399
|
+
</h3><div class="docstring">
|
400
|
+
<div class="discussion">
|
401
|
+
|
402
|
+
<p>Returns a list of IP addresses associated with this server</p>
|
403
|
+
|
404
|
+
|
405
|
+
</div>
|
406
|
+
</div>
|
407
|
+
<div class="tags">
|
408
|
+
|
409
|
+
<p class="tag_title">Returns:</p>
|
410
|
+
<ul class="return">
|
411
|
+
|
412
|
+
<li>
|
413
|
+
|
414
|
+
|
415
|
+
<span class='type'>(<tt>Array<String></tt>)</span>
|
416
|
+
|
417
|
+
|
418
|
+
|
419
|
+
—
|
420
|
+
<div class='inline'>
|
421
|
+
<p>The IP addresses of this server</p>
|
422
|
+
</div>
|
423
|
+
|
424
|
+
</li>
|
425
|
+
|
426
|
+
</ul>
|
427
|
+
|
428
|
+
</div><table class="source_code">
|
429
|
+
<tr>
|
430
|
+
<td>
|
431
|
+
<pre class="lines">
|
432
|
+
|
433
|
+
|
434
|
+
24
|
435
|
+
25
|
436
|
+
26</pre>
|
437
|
+
</td>
|
438
|
+
<td>
|
439
|
+
<pre class="code"><span class="info file"># File 'lib/steam/servers/server.rb', line 24</span>
|
440
|
+
|
441
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_ip_addresses'>ip_addresses</span>
|
442
|
+
<span class='ivar'>@ip_addresses</span>
|
443
|
+
<span class='kw'>end</span></pre>
|
444
|
+
</td>
|
445
|
+
</tr>
|
446
|
+
</table>
|
447
|
+
</div>
|
448
|
+
|
449
|
+
</div>
|
450
|
+
|
451
|
+
|
452
|
+
<div id="instance_method_details" class="method_details_list">
|
453
|
+
<h2>Instance Method Details</h2>
|
454
|
+
|
455
|
+
|
456
|
+
<div class="method_details first">
|
457
|
+
<h3 class="signature first" id="disconnect-instance_method">
|
458
|
+
|
459
|
+
- (<tt>Object</tt>) <strong>disconnect</strong>
|
460
|
+
|
461
|
+
|
462
|
+
|
463
|
+
|
464
|
+
|
465
|
+
</h3><div class="docstring">
|
466
|
+
<div class="discussion">
|
467
|
+
|
468
|
+
<div class="note notetag">
|
469
|
+
<strong>Note:</strong>
|
470
|
+
<div class='inline'>
|
471
|
+
<p>In the base implementation this does nothing, only
|
472
|
+
connection-based
|
473
|
+
communication channels have to be disconnected.</p>
|
474
|
+
</div>
|
475
|
+
</div>
|
476
|
+
|
477
|
+
|
478
|
+
<p>Disconnect the connections to this server</p>
|
479
|
+
|
480
|
+
|
481
|
+
</div>
|
482
|
+
</div>
|
483
|
+
<div class="tags">
|
484
|
+
|
485
|
+
|
486
|
+
</div><table class="source_code">
|
487
|
+
<tr>
|
488
|
+
<td>
|
489
|
+
<pre class="lines">
|
490
|
+
|
491
|
+
|
492
|
+
59
|
493
|
+
60</pre>
|
494
|
+
</td>
|
495
|
+
<td>
|
496
|
+
<pre class="code"><span class="info file"># File 'lib/steam/servers/server.rb', line 59</span>
|
497
|
+
|
498
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_disconnect'>disconnect</span>
|
499
|
+
<span class='kw'>end</span></pre>
|
500
|
+
</td>
|
501
|
+
</tr>
|
502
|
+
</table>
|
503
|
+
</div>
|
504
|
+
|
505
|
+
<div class="method_details ">
|
506
|
+
<h3 class="signature " id="failsafe-instance_method">
|
507
|
+
|
508
|
+
- (<tt>Object</tt>) <strong>failsafe</strong>(&proc) <span class="extras">(protected)</span>
|
509
|
+
|
510
|
+
|
511
|
+
|
512
|
+
|
513
|
+
|
514
|
+
</h3><div class="docstring">
|
515
|
+
<div class="discussion">
|
516
|
+
|
517
|
+
<p>Execute an action in the context of this server's current IP address</p>
|
518
|
+
|
519
|
+
<p>Any failure will cause the IP to rotate to the next IP in the server's
|
520
|
+
IP
|
521
|
+
list and the execution will be repeated for the next IP address. If the
|
522
|
+
IP
|
523
|
+
rotation reaches the end of the list, the error will be reraised.</p>
|
524
|
+
|
525
|
+
|
526
|
+
</div>
|
527
|
+
</div>
|
528
|
+
<div class="tags">
|
529
|
+
<p class="tag_title">Parameters:</p>
|
530
|
+
<ul class="param">
|
531
|
+
|
532
|
+
<li>
|
533
|
+
|
534
|
+
<span class='name'>proc</span>
|
535
|
+
|
536
|
+
|
537
|
+
<span class='type'>(<tt>Proc</tt>)</span>
|
538
|
+
|
539
|
+
|
540
|
+
|
541
|
+
—
|
542
|
+
<div class='inline'>
|
543
|
+
<p>The action to be executed in a failsafe way</p>
|
544
|
+
</div>
|
545
|
+
|
546
|
+
</li>
|
547
|
+
|
548
|
+
</ul>
|
549
|
+
|
550
|
+
|
551
|
+
<p class="tag_title">See Also:</p>
|
552
|
+
<ul class="see">
|
553
|
+
|
554
|
+
<li><span class='object_link'><a href="#rotate_ip-instance_method" title="Server#rotate_ip (method)">#rotate_ip</a></span></li>
|
555
|
+
|
556
|
+
</ul>
|
557
|
+
|
558
|
+
</div><table class="source_code">
|
559
|
+
<tr>
|
560
|
+
<td>
|
561
|
+
<pre class="lines">
|
562
|
+
|
563
|
+
|
564
|
+
96
|
565
|
+
97
|
566
|
+
98
|
567
|
+
99
|
568
|
+
100
|
569
|
+
101
|
570
|
+
102
|
571
|
+
103
|
572
|
+
104
|
573
|
+
105
|
574
|
+
106</pre>
|
575
|
+
</td>
|
576
|
+
<td>
|
577
|
+
<pre class="code"><span class="info file"># File 'lib/steam/servers/server.rb', line 96</span>
|
578
|
+
|
579
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_failsafe'>failsafe</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_proc'>proc</span><span class='rparen'>)</span>
|
580
|
+
<span class='kw'>begin</span>
|
581
|
+
<span class='id identifier rubyid_proc'>proc</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span>
|
582
|
+
<span class='kw'>rescue</span>
|
583
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='gvar'>$!</span> <span class='kw'>if</span> <span class='id identifier rubyid_rotate_ip'>rotate_ip</span>
|
584
|
+
<span class='kw'>if</span> <span class='gvar'>$DEBUG</span>
|
585
|
+
<span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Request failed, retrying for </span><span class='embvar'>#</span><span class='ivar'>@ip_address</span><span class='tstring_content'>...</span><span class='tstring_end'>"</span></span>
|
586
|
+
<span class='kw'>end</span>
|
587
|
+
<span class='id identifier rubyid_failsafe'>failsafe</span> <span class='op'>&</span><span class='id identifier rubyid_proc'>proc</span>
|
588
|
+
<span class='kw'>end</span>
|
589
|
+
<span class='kw'>end</span></pre>
|
590
|
+
</td>
|
591
|
+
</tr>
|
592
|
+
</table>
|
593
|
+
</div>
|
594
|
+
|
595
|
+
<div class="method_details ">
|
596
|
+
<h3 class="signature " id="init_socket-instance_method">
|
597
|
+
|
598
|
+
- (<tt>Object</tt>) <strong>init_socket</strong> <span class="extras">(protected)</span>
|
599
|
+
|
600
|
+
|
601
|
+
|
602
|
+
|
603
|
+
|
604
|
+
</h3><div class="docstring">
|
605
|
+
<div class="discussion">
|
606
|
+
<div class="note abstract">
|
607
|
+
<strong>This method is abstract.</strong>
|
608
|
+
<div class='inline'>
|
609
|
+
<p>Must be implemented in including classes to prepare sockets for
|
610
|
+
server
|
611
|
+
communication</p>
|
612
|
+
</div>
|
613
|
+
</div>
|
614
|
+
|
615
|
+
<p>Initializes the socket(s) to communicate with the server</p>
|
616
|
+
|
617
|
+
|
618
|
+
</div>
|
619
|
+
</div>
|
620
|
+
<div class="tags">
|
621
|
+
|
622
|
+
|
623
|
+
</div><table class="source_code">
|
624
|
+
<tr>
|
625
|
+
<td>
|
626
|
+
<pre class="lines">
|
627
|
+
|
628
|
+
|
629
|
+
112
|
630
|
+
113</pre>
|
631
|
+
</td>
|
632
|
+
<td>
|
633
|
+
<pre class="code"><span class="info file"># File 'lib/steam/servers/server.rb', line 112</span>
|
634
|
+
|
635
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_init_socket'>init_socket</span>
|
636
|
+
<span class='kw'>end</span></pre>
|
637
|
+
</td>
|
638
|
+
</tr>
|
639
|
+
</table>
|
640
|
+
</div>
|
641
|
+
|
642
|
+
<div class="method_details ">
|
643
|
+
<h3 class="signature " id="initialize-instance_method">
|
644
|
+
|
645
|
+
- (<tt>Object</tt>) <strong>initialize</strong>(address, port = nil)
|
646
|
+
|
647
|
+
|
648
|
+
|
649
|
+
|
650
|
+
|
651
|
+
</h3><div class="docstring">
|
652
|
+
<div class="discussion">
|
653
|
+
|
654
|
+
<p>Creates a new server instance with the given address and port</p>
|
655
|
+
|
656
|
+
|
657
|
+
</div>
|
658
|
+
</div>
|
659
|
+
<div class="tags">
|
660
|
+
<p class="tag_title">Parameters:</p>
|
661
|
+
<ul class="param">
|
662
|
+
|
663
|
+
<li>
|
664
|
+
|
665
|
+
<span class='name'>address</span>
|
666
|
+
|
667
|
+
|
668
|
+
<span class='type'>(<tt>String</tt>)</span>
|
669
|
+
|
670
|
+
|
671
|
+
|
672
|
+
—
|
673
|
+
<div class='inline'>
|
674
|
+
<p>Either an IP address, a DNS name or one of them
|
675
|
+
combined with the port
|
676
|
+
number. If a port number is given, e.g.
|
677
|
+
'server.example.com:27016'
|
678
|
+
it will override the second argument.</p>
|
679
|
+
</div>
|
680
|
+
|
681
|
+
</li>
|
682
|
+
|
683
|
+
<li>
|
684
|
+
|
685
|
+
<span class='name'>port</span>
|
686
|
+
|
687
|
+
|
688
|
+
<span class='type'>(<tt>Fixnum</tt>)</span>
|
689
|
+
|
690
|
+
|
691
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
692
|
+
|
693
|
+
|
694
|
+
—
|
695
|
+
<div class='inline'>
|
696
|
+
<p>The port the server is listening on</p>
|
697
|
+
</div>
|
698
|
+
|
699
|
+
</li>
|
700
|
+
|
701
|
+
</ul>
|
702
|
+
|
703
|
+
<p class="tag_title">Raises:</p>
|
704
|
+
<ul class="raise">
|
705
|
+
|
706
|
+
<li>
|
707
|
+
|
708
|
+
|
709
|
+
<span class='type'>(<tt><span class='object_link'><a href="SteamCondenserError.html" title="SteamCondenserError (class)">SteamCondenserError</a></span></tt>)</span>
|
710
|
+
|
711
|
+
|
712
|
+
|
713
|
+
—
|
714
|
+
<div class='inline'>
|
715
|
+
<p>if an host name cannot be resolved</p>
|
716
|
+
</div>
|
717
|
+
|
718
|
+
</li>
|
719
|
+
|
720
|
+
</ul>
|
721
|
+
|
722
|
+
<p class="tag_title">See Also:</p>
|
723
|
+
<ul class="see">
|
724
|
+
|
725
|
+
<li>init_socket</li>
|
726
|
+
|
727
|
+
</ul>
|
728
|
+
|
729
|
+
</div><table class="source_code">
|
730
|
+
<tr>
|
731
|
+
<td>
|
732
|
+
<pre class="lines">
|
733
|
+
|
734
|
+
|
735
|
+
34
|
736
|
+
35
|
737
|
+
36
|
738
|
+
37
|
739
|
+
38
|
740
|
+
39
|
741
|
+
40
|
742
|
+
41
|
743
|
+
42
|
744
|
+
43
|
745
|
+
44
|
746
|
+
45
|
747
|
+
46
|
748
|
+
47
|
749
|
+
48
|
750
|
+
49
|
751
|
+
50
|
752
|
+
51
|
753
|
+
52</pre>
|
754
|
+
</td>
|
755
|
+
<td>
|
756
|
+
<pre class="code"><span class="info file"># File 'lib/steam/servers/server.rb', line 34</span>
|
757
|
+
|
758
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_address'>address</span><span class='comma'>,</span> <span class='id identifier rubyid_port'>port</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
759
|
+
<span class='id identifier rubyid_address'>address</span> <span class='op'>=</span> <span class='id identifier rubyid_address'>address</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span>
|
760
|
+
<span class='id identifier rubyid_address'>address</span><span class='comma'>,</span> <span class='id identifier rubyid_port'>port</span> <span class='op'>=</span> <span class='id identifier rubyid_address'>address</span><span class='period'>.</span><span class='id identifier rubyid_split'>split</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>:</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='int'>2</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_address'>address</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>:</span><span class='tstring_end'>'</span></span>
|
761
|
+
|
762
|
+
<span class='ivar'>@host_names</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
763
|
+
<span class='ivar'>@ip_addresses</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
764
|
+
<span class='ivar'>@ip_index</span> <span class='op'>=</span> <span class='int'>0</span>
|
765
|
+
<span class='ivar'>@port</span> <span class='op'>=</span> <span class='id identifier rubyid_port'>port</span>
|
766
|
+
|
767
|
+
<span class='const'>Socket</span><span class='period'>.</span><span class='id identifier rubyid_getaddrinfo'>getaddrinfo</span><span class='lparen'>(</span><span class='id identifier rubyid_address'>address</span><span class='comma'>,</span> <span class='id identifier rubyid_port'>port</span><span class='comma'>,</span> <span class='const'>Socket</span><span class='op'>::</span><span class='const'>AF_INET</span><span class='comma'>,</span> <span class='const'>Socket</span><span class='op'>::</span><span class='const'>SOCK_DGRAM</span><span class='rparen'>)</span><span class='period'>.</span>
|
768
|
+
<span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_address'>address</span><span class='op'>|</span>
|
769
|
+
<span class='ivar'>@host_names</span> <span class='op'><<</span> <span class='id identifier rubyid_address'>address</span><span class='lbracket'>[</span><span class='int'>2</span><span class='rbracket'>]</span>
|
770
|
+
<span class='ivar'>@ip_addresses</span> <span class='op'><<</span> <span class='id identifier rubyid_address'>address</span><span class='lbracket'>[</span><span class='int'>3</span><span class='rbracket'>]</span>
|
771
|
+
<span class='kw'>end</span>
|
772
|
+
|
773
|
+
<span class='ivar'>@ip_address</span> <span class='op'>=</span> <span class='ivar'>@ip_addresses</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span>
|
774
|
+
|
775
|
+
<span class='id identifier rubyid_init_socket'>init_socket</span>
|
776
|
+
<span class='kw'>end</span></pre>
|
777
|
+
</td>
|
778
|
+
</tr>
|
779
|
+
</table>
|
780
|
+
</div>
|
781
|
+
|
782
|
+
<div class="method_details ">
|
783
|
+
<h3 class="signature " id="rotate_ip-instance_method">
|
784
|
+
|
785
|
+
- (<tt>Boolean</tt>) <strong>rotate_ip</strong>
|
786
|
+
|
787
|
+
|
788
|
+
|
789
|
+
|
790
|
+
|
791
|
+
</h3><div class="docstring">
|
792
|
+
<div class="discussion">
|
793
|
+
|
794
|
+
<p>Rotate this server's IP address to the next one in the IP list</p>
|
795
|
+
|
796
|
+
<p>If this method returns <code>true</code>, it indicates that all IP
|
797
|
+
addresses have been
|
798
|
+
used, hinting at the server(s) being unreachable. An
|
799
|
+
appropriate action
|
800
|
+
should be taken to inform the user.</p>
|
801
|
+
|
802
|
+
<p>Servers with only one IP address will always cause this method to
|
803
|
+
return
|
804
|
+
<code>true</code> and the sockets will not be reinitialized.</p>
|
805
|
+
|
806
|
+
|
807
|
+
</div>
|
808
|
+
</div>
|
809
|
+
<div class="tags">
|
810
|
+
|
811
|
+
<p class="tag_title">Returns:</p>
|
812
|
+
<ul class="return">
|
813
|
+
|
814
|
+
<li>
|
815
|
+
|
816
|
+
|
817
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
818
|
+
|
819
|
+
|
820
|
+
|
821
|
+
—
|
822
|
+
<div class='inline'>
|
823
|
+
<p><code>true</code>, if the IP list reached its end. If the list
|
824
|
+
contains
|
825
|
+
only one IP address, this method will instantly return
|
826
|
+
<code>true</code></p>
|
827
|
+
</div>
|
828
|
+
|
829
|
+
</li>
|
830
|
+
|
831
|
+
</ul>
|
832
|
+
|
833
|
+
<p class="tag_title">See Also:</p>
|
834
|
+
<ul class="see">
|
835
|
+
|
836
|
+
<li><span class='object_link'><a href="#init_socket-instance_method" title="Server#init_socket (method)">#init_socket</a></span></li>
|
837
|
+
|
838
|
+
</ul>
|
839
|
+
|
840
|
+
</div><table class="source_code">
|
841
|
+
<tr>
|
842
|
+
<td>
|
843
|
+
<pre class="lines">
|
844
|
+
|
845
|
+
|
846
|
+
75
|
847
|
+
76
|
848
|
+
77
|
849
|
+
78
|
850
|
+
79
|
851
|
+
80
|
852
|
+
81
|
853
|
+
82
|
854
|
+
83
|
855
|
+
84</pre>
|
856
|
+
</td>
|
857
|
+
<td>
|
858
|
+
<pre class="code"><span class="info file"># File 'lib/steam/servers/server.rb', line 75</span>
|
859
|
+
|
860
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_rotate_ip'>rotate_ip</span>
|
861
|
+
<span class='kw'>return</span> <span class='kw'>true</span> <span class='kw'>if</span> <span class='ivar'>@ip_addresses</span><span class='period'>.</span><span class='id identifier rubyid_size'>size</span> <span class='op'>==</span> <span class='int'>1</span>
|
862
|
+
|
863
|
+
<span class='ivar'>@ip_index</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='ivar'>@ip_index</span> <span class='op'>+</span> <span class='int'>1</span><span class='rparen'>)</span> <span class='op'>%</span> <span class='ivar'>@ip_addresses</span><span class='period'>.</span><span class='id identifier rubyid_size'>size</span>
|
864
|
+
<span class='ivar'>@ip_address</span> <span class='op'>=</span> <span class='ivar'>@ip_addresses</span><span class='lbracket'>[</span><span class='ivar'>@ip_index</span><span class='rbracket'>]</span>
|
865
|
+
|
866
|
+
<span class='id identifier rubyid_init_socket'>init_socket</span>
|
867
|
+
|
868
|
+
<span class='ivar'>@ip_index</span> <span class='op'>==</span> <span class='int'>0</span>
|
869
|
+
<span class='kw'>end</span></pre>
|
870
|
+
</td>
|
871
|
+
</tr>
|
872
|
+
</table>
|
873
|
+
</div>
|
874
|
+
|
875
|
+
</div>
|
876
|
+
|
877
|
+
</div>
|
878
|
+
|
879
|
+
<div id="footer">
|
880
|
+
Generated on Tue Jul 22 07:10:14 2014 by
|
881
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
882
|
+
0.8.7.3 (ruby-2.0.0).
|
883
|
+
</div>
|
884
|
+
|
885
|
+
</body>
|
886
|
+
</html>
|