Removed the nested if(s). The output is the same. I'm happy. To make it
easier to see the raw data being received I Reduced the size of the receive
buffer from 1400 bytes to 144 bytes. Looking at the sample output I see that
the first three servers (sc4.6 test servers) reply to the info query with
all the expected data. The next server (Raspberry's) sends an EDF of 144
rather than 145 like all the other servers? It does not send the 2nd AppID.
And the last three do not send all of the extended data. They only send the
server game port after the EDF. The script is configured to use a UDP slow
link delay allowing ten seconds for a reply.

A server sending an EDF of 144/145 there are usually three or four pieces of
information in the extended data. The EDF does not change when the all the
data is not sent. I already know the gameport (sent the info_query to it),
Have no Idea what to do with the SteamID and I already have the AppID.
Tested with a dummy-ed up receive buffer containing an EDF of 245 to check
the other two items: ( EDF -band 0x40 ) and ( EDF -band 0x20 )
The extended data received varies from server to server and it is probably
of little value, except as an exercise in understanding valve's
documentation.

                    Type: I
        Protocol Version: 48
             Server Name: SC Test Server -DAL- [2815]
                     Map: boot_camp
          Game Directory: SvenCoop4
        Game Description: Sven Co-op 4.6 or later
                   AppID: 70, 78
       Number of players: 0
          Number of bots: 0
               Dedicated: d
                      OS: w
                Password: 1
                  Secure: 1
            Game Version: 1.1.2.1
                     EDF: 145, 95
                gameport: 27015
                 SteamID: 19448
                  AppID2: 70
Raw Data: 255 255 255 255 73 48 83 67 32 84 101 115 116 32 83 101 114 118
101 114 32 45 68 65 76 45 32 91 50 56 49 53
93 0 98 111 111 116 95 99 97 109 112 0 83 118 101 110 67 111 111 112 52 0 83
118 101 110 32 67 111 45 111 112 32 52 46
54 32 111 114 32 108 97 116 101 114 0 70 0 0 24 0 100 119 1 1 49 46 49 46 50
46 49 0 145 135 105 8 180 77 232 182 9 64
1 70 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0

                    Type: I
        Protocol Version: 48
             Server Name: SC Test Server -UK- [2815]
                     Map: undertow
          Game Directory: SvenCoop4
        Game Description: Sven Co-op 4.6 or later
                   AppID: 70, 76
       Number of players: 0
          Number of bots: 0
               Dedicated: d
                      OS: w
                Password: 1
                  Secure: 1
            Game Version: 1.1.2.1
                     EDF: 145, 93
                gameport: 27015
                 SteamID: 5118
                  AppID2: 70
Raw Data: 255 255 255 255 73 48 83 67 32 84 101 115 116 32 83 101 114 118
101 114 32 45 85 75 45 32 91 50 56 49 53 93 0
117 110 100 101 114 116 111 119 0 83 118 101 110 67 111 111 112 52 0 83 118
101 110 32 67 111 45 111 112 32 52 46 54 32
111 114 32 108 97 116 101 114 0 70 0 0 24 0 100 119 1 1 49 46 49 46 50 46 49
0 145 135 105 2 236 147 179 182 9 64 1 70
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0

                    Type: I
        Protocol Version: 48
             Server Name: Stealing jaffa cakes [trunk][2815]
                     Map: crystal
          Game Directory: svencoop4
        Game Description: Sven Co-op 4.6 or later
                   AppID: 70, 83
       Number of players: 0
          Number of bots: 0
               Dedicated: d
                      OS: w
                Password: 1
                  Secure: 0
            Game Version: 1.1.2.1
                     EDF: 145, 100
                gameport: 27025
                 SteamID: 31732
                  AppID2: 70
Raw Data: 255 255 255 255 73 48 83 116 101 97 108 105 110 103 32 106 97 102
102 97 32 99 97 107 101 115 32 91 116 114
117 110 107 93 91 50 56 49 53 93 0 99 114 121 115 116 97 108 0 115 118 101
110 99 111 111 112 52 0 83 118 101 110 32 67
111 45 111 112 32 52 46 54 32 111 114 32 108 97 116 101 114 0 70 0 0 12 0
100 119 1 0 49 46 49 46 50 46 49 0 145 145
105 12 132 81 247 181 9 64 1 70 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0

                    Type: I
        Protocol Version: 48
             Server Name:       ..::[Raspberry's H(e)aven]::[ LESS 4.07,
MOAR 4.5 ]::..
                     Map: -HL_OpFor_SP_Portal
          Game Directory: svencoop
        Game Description: Sven Co-op 4.5
                   AppID: 70, 112
       Number of players: 0
          Number of bots: 0
               Dedicated: d
                      OS: w
                Password: 0
                  Secure: 1
            Game Version: 1.1.2.1
                     EDF: 144, 129
                gameport: 27094
                 SteamID: 21494
                  AppID2:
Raw Data: 255 255 255 255 73 48 32 32 32 32 32 32 46 46 58 58 91 82 97 115
112 98 101 114 114 121 39 115 32 72 40 101
41 97 118 101 110 93 58 58 91 32 76 69 83 83 32 52 46 48 55 44 32 77 79 65
82 32 52 46 53 32 93 58 58 46 46 0 45 72 76
95 79 112 70 111 114 95 83 80 95 80 111 114 116 97 108 0 115 118 101 110 99
111 111 112 0 83 118 101 110 32 67 111 45
111 112 32 52 46 53 0 70 0 0 6 0 100 119 0 1 49 46 49 46 50 46 49 0 144 214
105 10 172 38 156 182 9 64 1 0 0 0 0

                    Type: I
        Protocol Version: 48
             Server Name: [FR]SvenCoop4.5 AMXX[1] Linux/VMware
                     Map: sc_activist
          Game Directory: svencoop
        Game Description: Sven Co-op 4.5
                   AppID: 70, 79
       Number of players: 0
          Number of bots: 0
               Dedicated: d
                      OS: w
                Password: 0
                  Secure: 1
            Game Version: 1.1.2.1
                     EDF: 145, 96
                gameport: 27115
                 SteamID: 0
                  AppID2: 0
Raw Data: 255 255 255 255 73 48 91 70 82 93 83 118 101 110 67 111 111 112 52
46 53 32 65 77 88 88 91 49 93 32 76 105
110 117 120 47 86 77 119 97 114 101 0 115 99 95 97 99 116 105 118 105 115
116 0 115 118 101 110 99 111 111 112 0 83 118
101 110 32 67 111 45 111 112 32 52 46 53 0 70 0 0 12 0 100 119 0 1 49 46 49
46 50 46 49 0 145 235 105 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

                    Type: I
        Protocol Version: 48
             Server Name: [FR]SvenCoop4.5 AMXX(2) Rcbot
                     Map: toonrun1
          Game Directory: svencoop
        Game Description: Sven Co-op 4.5
                   AppID: 70, 69
       Number of players: 2
          Number of bots: 2
               Dedicated: d
                      OS: w
                Password: 0
                  Secure: 1
            Game Version: 1.1.2.1
                     EDF: 145, 86
                gameport: 27215
                 SteamID: 0
                  AppID2: 0
Raw Data: 255 255 255 255 73 48 91 70 82 93 83 118 101 110 67 111 111 112 52
46 53 32 65 77 88 88 40 50 41 32 82 99 98
111 116 0 116 111 111 110 114 117 110 49 0 115 118 101 110 99 111 111 112 0
83 118 101 110 32 67 111 45 111 112 32 52
46 53 0 70 0 2 12 2 100 119 0 1 49 46 49 46 50 46 49 0 145 79 106 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

                    Type: I
        Protocol Version: 48
             Server Name: [FR]SvenCoop4.5 AMXX[5]
                     Map: jumpers
          Game Directory: svencoop
        Game Description: Sven Co-op 4.5
                   AppID: 70, 62
       Number of players: 0
          Number of bots: 0
               Dedicated: d
                      OS: w
                Password: 0
                  Secure: 1
            Game Version: 1.1.2.1
                     EDF: 145, 79
                gameport: 27515
                 SteamID: 0
                  AppID2: 0
Raw Data: 255 255 255 255 73 48 91 70 82 93 83 118 101 110 67 111 111 112 52
46 53 32 65 77 88 88 91 53 93 0 106 117
109 112 101 114 115 0 115 118 101 110 99 111 111 112 0 83 118 101 110 32 67
111 45 111 112 32 52 46 53 0 70 0 0 12 0
100 119 0 1 49 46 49 46 50 46 49 0 145 123 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux

Reply via email to