Thursday, 15 May 2014

How to format UDP packet in Java? -



How to format UDP packet in Java? -

i need send info ip address udp. don't know how format string. need send multiple info packets?

from developer page information:

what supposed do? in right section it's string need send.

could explain mean "challenge"?

from developers site:

shortly after game server has been initialized, picks 2 master servers "join." in order clients see particular game server when click on "internet" tab, game server must nowadays in steam master servers' records. game server sends each master server "q" (71). master servers each respond sending ff ff ff ff 73 0a followed (relatively) unique 4-byte "challenge" number. if send master servers invalid challenge, challenge response.

what mean?

ff ff ff ff 73 0a

as wrote in comment, need send bytes, not string. you'll have find out if server works ascii encoding or different , bytes strings in right encoding.

when docu talks "sending ff 73 ... " means sending bytes. number in base of operations 16 (="hexadecimal"). byte "ff" created illustration :

byte b = 0xff; // hex 255

when docu talks sending "q(71)" means sending byte (0x71) encodes letter "q" in ascii.

about "challenge" read wikipedia , consult developer docu little bit deeper. sure more on matter.

on using udp in java can consult many examples , tutorials oracle.

i hope helpful you. luck.

java udp format

No comments:

Post a Comment