Call of Duty 2 - Rcon Protocol

Discussion in 'Hardware' started by davyboy1979, Nov 1, 2006.

  1. davyboy1979

    davyboy1979 Private E-2

    Yeah, I know it's a game, but please bare with me, as this is very network specific:

    What I am planning on doing, is creating a secure website, running a J2EE application (my preferred language), and creating a management application that connects to a given server (with the correct credentials etc...).

    So far, from digging around, I have found out that rcon on cod2 takes place over a UDP connection to the server. Whenever you make a request, you send a packet of the form:
    bytes: "0xFF 0xFF 0xFF 0xFF"
    characters: "rcon password command"

    and the server responds back with potentially multiple packets, each packet beginning with
    bytes: "0xFF 0xFF 0xFF 0xFF"
    characters: "print"
    bytes: "0x0A"
    characters: the message that is returned, or part thereof

    Reading a message that returns in one packet is not a problem currently, such as "g_gravity". What I'm getting problems with, is retrieving multiple packets back, such as the rcon command "dvarlist". Sometimes I don't receive all packets, other times, i get them out of order (which is understandable for UDP).

    Is there anything in the rcon protocol, or in Java that will help me identify the order of the packets I am receiving?

    Thanks Guys for any help you can offer.

    David Hayes
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds