JavaDoctor
Technical User
Hello, I just sorted out connecting to a Games Server via UDP with a socket from Catalyst courtesy of assistance from another thread.
The connection is working and giving me a disconnect message which tells me it is working but I need to send a diferent query string. I have a query string that works in PHP but can't see how to create it with VBS. The PHP string is:
$send = "ÿÿÿÿ" . chr (0x02) . "getstatus";
(this gets the server to send back a list of it's current game parameters and players/scores etc)
I believe that ÿ = Chr(255) Alt+0255 but what is chr (0x02) ? I have tried sending chr(02) and chr(2) but I don't think it is being recognised.
If I send a single word string as a query I get back ÿÿÿÿdisconnect as a response; if I send something that looks like the above query string
I have tried all sorts of variations to no avail.
Does this make any sense?
Any help or pointers appreciated.
The connection is working and giving me a disconnect message which tells me it is working but I need to send a diferent query string. I have a query string that works in PHP but can't see how to create it with VBS. The PHP string is:
$send = "ÿÿÿÿ" . chr (0x02) . "getstatus";
(this gets the server to send back a list of it's current game parameters and players/scores etc)
I believe that ÿ = Chr(255) Alt+0255 but what is chr (0x02) ? I have tried sending chr(02) and chr(2) but I don't think it is being recognised.
If I send a single word string as a query I get back ÿÿÿÿdisconnect as a response; if I send something that looks like the above query string
I have tried all sorts of variations to no avail.
Does this make any sense?
Any help or pointers appreciated.