Hello,
is there an error in the Query Protocolo?
I call from an application the Server Protocol on many different
servers and all wors fine.. But on few servers i am not able to recieve the
Rulez but HLSW i have seen works fine!
I Tested with this Servers:
Connected: 85.131.163.208:27055
NumRulez: 64
Connected: 89.106.68.188:27016
NumRulez: 74
Connected: 85.14.229.244:27015
NumRulez: 64
Connected: 85.14.225.123:27015
NumRulez: 67
Connected: 195.4.107.178:27015
Error on recieving Rules!
NumRulez: 2
Error on recieving Rules!
NumRulez: 2
Error on recieving Rules!
NumRulez: 2
So you can see, on Server 195.4.107.178:27015 i am not able to recieve the
Rules right like the other servers...
I Request the rules on this way:
After i am connectet i send:
strcpy( Befehl, "\xFF\xFF\xFF\xFF\x56" );
strcat( Befehl, GetServerChallange() );
bytes = send( Socket, Befehl, strlen( Befehl ), 0 );
GetServerChallange returns the Server Challange and that works fine becouse
i am able to retrieve from all other serves
the rules...
Than:
bytes = recv( Socket, buffer, sizeof( buffer ) - 1, 0 );
buffer[ bytes ] = '\0';
buffer is declared as char buffer[1024];
After that i check for errors like:
if ( buffer[ 4 ] != S2A_RULES )
{
printf( " Error on recieving Rules!\n" );
}
S2A_RULES is defined as:
#define S2A_RULES 0x45
So i check that is the right response.
But on many servers i get the error but i dont know why! Can anybody help me
to fix this problem?
With friendly Reguards
Ratman2000
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders