Page 1 of 1

UDP Port Monitoring

Posted: Mon Jun 16, 2003 9:45 am
by Parts
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!

Posted: Mon Jun 16, 2003 2:35 pm
by Bjarne BZR
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