a_jam_sandwich
Junior Contributor
Freaky?
Im making a class for get info from halflife servers using a udp socket. the strange thing is I have sent the command to the server format of
ÿÿÿÿinfo
The problem is converting this into bytes to send over the net causes a strange problem I would expect the first byte to be the number 255 except is not its 63 sending the packet works but im in an endless loop waiting for a response.
If I change the first 4 bytes to 255 manually there isn't a problem and I get a response.
Any ideas as im baffeled or being stupid
Andy
Im making a class for get info from halflife servers using a udp socket. the strange thing is I have sent the command to the server format of
ÿÿÿÿinfo
The problem is converting this into bytes to send over the net causes a strange problem I would expect the first byte to be the number 255 except is not its 63 sending the packet works but im in an endless loop waiting for a response.
If I change the first 4 bytes to 255 manually there isn't a problem and I get a response.
Any ideas as im baffeled or being stupid
Andy