UDP Port Monitoring

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Parts
Sergeant
Posts: 72
Joined: Thu Apr 10, 2003 12:35 pm
Location: UK
Contact:

UDP Port Monitoring

Post 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!
[VS-UK]Capt.Parts[BnHQ]
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post 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
Admin .MAP Forums
Image
Head above heels.
Post Reply