Is it possible to have two processes (say, oh, Brood War and a gamebot) to bind to the same UDP port? I don't think so, but is there another solution that would work?
It also seems that even if I bind first, Brood War takes it over. ANy suggestions would be much appreciated.
Quote from: St0rm.iD on May 26, 2003, 09:04 AM
Is it possible to have two processes (say, oh, Brood War and a gamebot) to bind to the same UDP port? I don't think so, but is there another solution that would work?
It also seems that even if I bind first, Brood War takes it over. ANy suggestions would be much appreciated.
Yes, you can with UDP. However, you need to set a special flag (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winsock/winsock/using_so_exclusiveaddruse.asp), so Brood War would need to bind the socket first.
Quote from: St0rm.iD on May 26, 2003, 09:04 AMIt also seems that even if I bind first, Brood War takes it over.
That's interesting. On my Mac, Brood War increments the UDP port (eg, use 6113).
It does that on mine, too, if port 6112 is in use it uses 6113.
Yeah i figured that out.