This is from 10 months ago;
From: "Alfred Reynolds" <[EMAIL PROTECTED]> Add to Address BookAdd to Address Book To: hlds_apps@list.valvesoftware.com, hlcoders@list.valvesoftware.com Subject: [hlcoders] Source RCON format Date: Sun, 22 Aug 2004 18:40:00 -0700 Here is my first pass at writing a spec for the RCON format, feel free to ask questions. ---------------------------------------------------- Source Server RCON format The protocol is based around command/response packets encapsulated in a TCP/IP stream. The stream can have multiple outstanding commands and can be extended to allow for multiple sub-channels of data. The command packet format consists of: packet size (int) request id (int) command (int) string1 (null delimited string) string2 (null delimited string) The packet size is the number of bytes from the start of the requestid to the end of string2 (including the null byte). It must be at least 10. Request id can be any value except for -1 (0xffffffff), it is used by the client to de-multiplex outstanding command responses. Command must be: SERVERDATA_EXECCOMMAND = 2 or SERVERDATA_AUTH = 3 The meaning of the string values depends upon the command issued. SERVERDATA_AUTH: string1 is the rcon_password for the server. string2 must be null (""); SERVERDATA_EXECCOMMAND: string1 is the command to run. string2 must be null (""); For RCON connections the first command must be a SERVERDATA_AUTH command. If a SERVERDATA_EXECCOMMAND command is sent prior to successful authentication then a SERVERDATA_AUTH_RESPONSE response packet with the failure condition is sent (see the response section for details). The response packet is the same as the command packet, which is: packet size (int) request id (int) command response (int) string1 (null delimited string) string2 (null delimited string) with valid command responses being: SERVERDATA_RESPONSE_VALUE = 0 or SERVERDATA_AUTH_RESPONSE = 2 SERVERDATA_AUTH_RESPONSE is sent in response to a SERVERDATA_AUTH command (or to a SERVERDATA_EXECCOMMAND command if the connection is not successfully authenticated). Both strings are set to null. If the request id is -1 (0xffffffff) then the authentication attempt failed (due to a bad password). If the request id is the same value as sent in the command (i.e the value was mirrored back) then authentication was successful. Any other request id is an error and the SERVERDATA_AUTH command should be resent. SERVERDATA_RESPONSE_VALUE is sent in response to a SERVERDATA_EXECCOMMAND command. string1 contains the response to the command and string2 is null (""). string1 is at most 4096 characters, so a single SERVERDATA_EXECCOMMAND command may result in multiple SERVERDATA_RESPONSE_VALUE response packets. _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders --- "Erling K. Sæterdal" <[EMAIL PROTECTED]> wrote: > http://wikki.kquery.net/index.php/Other:SourceRcon > > http://collective.valve-erc.com/index.php?doc=1063146620-20111500 > > Are 2 links of my head > ----- Original Message ----- > From: "Andrew Simpson" <[EMAIL PROTECTED]> > To: <hlcoders@list.valvesoftware.com> > Sent: Monday, May 30, 2005 10:03 PM > Subject: RE: [hlcoders] Anyone made a Source Rcon > class that be used by 3d > party programs yet ? ( One that works in .net ) > > > I'll write one for you if you can point me in the > direction of the Source > RCON spec... > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Erling K. > Sæterdal > Sent: 30 May 2005 20:28 > To: hlcoders@list.valvesoftware.com > Subject: [hlcoders] Anyone made a Source Rcon class > that be used by 3d party > programs yet ? ( One that works in .net ) > > This is a multi-part message in MIME format. > -- > [ Picked text/plain from multipart/alternative ] > Hi, > > Not being a expert coder, it would take me alot of > time making this myself. > If anyone writen a library file that can be used in > a C# .net application > or even better writen in C#. And would be willing to > share it ? > > I tried google, but ended up with the explation on > how to create it. > > Best Regards > Erling K. Sæterdal > -- > > _______________________________________________ > To unsubscribe, edit your list preferences, or view > the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > > > _______________________________________________ > To unsubscribe, edit your list preferences, or view > the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > > > > _______________________________________________ > To unsubscribe, edit your list preferences, or view > the list archives, please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > http://ammahls.com __________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new Resources site http://smallbusiness.yahoo.com/resources/ _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders