Hi, I know this isn't strictly scripting but seemed like the most likely forum. I'm looking at writing a UDP / TCP port monitor for spearhead. The intention being to pull out the players names that the likes of gamespy and ASE monitor. I could then feed taht back into the server via a script.
I know this is possible as it's been done before, I also have found out the basics however I was wondering if anyone knew of a good reference source for getting further information. Getting real details seems hard to find!
UDP Port Monitoring
Moderator: Moderators
UDP Port Monitoring
[VS-UK]Capt.Parts[BnHQ]
-
Bjarne BZR
- Site Admin
- Posts: 3298
- Joined: Wed Feb 05, 2003 2:04 pm
- Location: Sweden
- Contact:
Well: for some reason you must send the first 5 bytes like this:
Code: Select all
buffer[0] = (byte) 255;
buffer[1] = (byte) 255;
buffer[2] = (byte) 255;
buffer[3] = (byte) 255;
buffer[4] = (byte) 2;
// then add the rest to the buffer