mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Mar 2003
Posts: 4
W
Self-satisified door
OP Offline
Self-satisified door
W
Joined: Mar 2003
Posts: 4
I'm trying to query a gameserver. To do this i need to send 10 bytes per UDP which is simple enough. The problem is the querystring itself:

0xFE,0xFD,0x00,0x04,0x05,0x06,0x07,0xFF,0xFF,0xFF

I have no problem with 9 of these bytes, i can simply send them as plain text. But i cannot find a way to send the 0x00 byte.

Is there any way to make this happen? I can't find a workaround...


[Edit]Okay, i solved the problem by storing the query in a file.
Code:
bread arma.bin 0 10 &query
sockudp -k arma $arma.port $arma.ip $arma.port &query



Last edited by weissbrot; 29/07/07 12:51 PM.
Joined: Dec 2002
Posts: 503
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Dec 2002
Posts: 503
Just wondering, why didn't the following work:

Code:
bset &query 1 254 253 0 4 5 6 7 255 255 255
sockudp -k arma $arma.port $arma.ip $arma.port &query

This should set the binary variable &query and make it available for use for the following command.

The thing to note about binary variables is that they are temporary variables. As soon as the routine that uses them is done, they are unset (similar to a /var or '/set -u0').


Link Copied to Clipboard