Of course you can format packets in WinSock, WinSock is the Windows network
sockets API. Essentially all the network connectivity functions for Windows
programs run through WinSock, even Half-Life's. Some of the MFC stuff that
uses WinSock may be higher-level, but WinSock itself can send TCP and UDP
packets just fine. You need to do more to use raw sockets to write the whole
packet yourself, including the protocol header (and that only works for
administrator accounts under 2K/XP), but as Half-Life uses UDP for
non-player connections there shouldn't be a problem.

The packet format should be in the full SDK (at least it used to be) -- it's
in a "Server Info" folder with the name "server protocol.txt". It contains
both the old and new formats for querying server info, as well as the master
server query protocol, but the RCON protocol isn't there. If you need that,
I'm sure I can dig it up.


----- Original Message -----
From: "Miguel Alemán" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 01, 2003 3:58 PM
Subject: Re: [hlcoders] Sending commands to HLDS


> You can't format packets in WinSock. WinSock is a higher level protocol.
>
> Try searching the newsgroup database (maybe the old one on Topica), I
> remember a thread where they discussed the format for sending commands to
> the dedicated server using C. You could also try searching Yahoo for an
open
> source utility which does the same thing, many exist and from the code you
> could see how the commands are formatted.
>
> ----- Original Message -----
> From: "Dan Cox" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, January 01, 2003 11:50 AM
> Subject: RE: [hlcoders] Sending commands to HLDS
>
>
> > Looking for the packet format.  Looking to do some Winsock programming
> > but completely lost the structure to send/receive about a year ago.
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]] On Behalf Of Nick McLaren
> > Sent: Wednesday, January 01, 2003 1:20 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [hlcoders] Sending commands to HLDS
> >
> >
> >
> > The format of the packet or format of the data. The data is actually the
> > same as the way the log entries show up in the local logs. You can also
> > view raw logs via HLSW (www.hlsw.de) to see how it is received. As far
> > as sending commands to HLDS I assume you mean either to retrieve status
> > information about the server or via RCON which I'm certain you can
> > either find an object for or use sockets. Of course I don't have the
> > protocol data handy, so I guess I'm not a whole lot of help there! Hey,
> > I tried! hehe! ;)
> >
> > ---------------------------
> > Nick McLaren, CCNA, SCSA
> > BattleLAN Technical Admin
> > <[EMAIL PROTECTED]>
> > http://www.battlelan.com/
> > ---------------------------
> >
> > On Wed, 1 Jan 2003, Dan Cox wrote:
> >
> > > This is a multi-part message in MIME format.
> > > --
> > > [ Picked text/plain from multipart/alternative ]
> > > Hello all,
> > >    I used to have this info a few years ago but it's been lost since.
> >
> > > I need to know where to look in the SDK to find the info on how to
> > > send commands to HLDS using Visual Basic or C.  I'd also like to find
> > > the format that the data is sent when logging to a remote computer
> > > using the 'logaddress' cvar.
> > > _______________________________________________
> > > 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
> >
> >
>
> _______________________________________________
> 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

Reply via email to