Thanks I'll take a look at the code to see how you do things. To be honest I'd rather do it myself so that I can improve my coding skills. No offense. But thanks for the code.
Dimitrios Zarras (feugatos) CEID Warfare | TF2, CS:GO, ZPS | ceidwarfare.net On 10/09/2012 05:03 PM, Sebastian Staudt wrote: > Hi Dimitrios, > > if you don't want to implement this all yourself, you might be > interested in my project Steam Condenser which is available for > Java: https://github.com/koraktor/steam-condenser-java > Otherwise, feel free to have a look at the code and see how I've done it. > > Best regards, > > Sebastian > > > 2012/10/9 feugatos <feuga...@ceidwarfare.net > <mailto:feuga...@ceidwarfare.net>> > > Hi there guys, > > Sorry I couldn't directly reply to the original message but I just > subscribed to the list. I found the original mail via > mail-archive.com <http://mail-archive.com>. > > I'm trying to implement the Source RCON protocol in Java. So far I'm > able to correctly create and send packets, I can correctly authenticate > using the server's RCON password and I can send commands and receive > their answers, provided they fit in a single packet. > > My problems start when answers start to span across multiple packets. > How am I supposed to to know that a response will be sent in multiple > packets? Does the first packet I receive contain this information? I've > been looking at the wiki > (https://developer.valvesoftware.com/wiki/Source_RCON_Protocol) but I > couldn't find a solution. How do you handle such situations? > > And something last. Sometimes when I send for instance a status command, > when I read the packet size the server send me, it sometimes is > ridiculously large. (sometimes I was supposed to read packets of 1GB). > I've read that the max size of sting1 is 4096 bytes. Does that contain > the null termination character? At such cases what am I supposed to > read? > 4 bytes for the request id + 4 bytes for the SERVERDATA response + 4096 > bytes for string1 + 1byte for the null string2 or > 4 bytes for the request id + 4 bytes for the SERVERDATA response + 4096 > bytes for string1 + 1byte for the null termination character of string1 > + 1byte for the null string2 > > Sorry for the really really long mail and thanks in advance! > > -- > Dimitrios Zarras (feugatos) > CEID Warfare | TF2, CS:GO, ZPS | ceidwarfare.net > <http://ceidwarfare.net> > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list > archives, please visit: > https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders > > > > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, please > visit: > https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders > _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders