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.

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

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders

Reply via email to