• Welcome to Valhalla Legends Archive.
 

Two sockets binding to the same port?

Started by Banana fanna fo fanna, May 26, 2003, 09:04 AM

Previous topic - Next topic

Banana fanna fo fanna

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.

Skywing

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, so Brood War would need to bind the socket first.

tA-Kane

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).
Macintosh programmer and enthusiast.
Battle.net Bot Programming: http://www.bash.org/?240059
I can write programs. Can you right them?

http://www.clan-mac.com
http://www.eve-online.com

iago

It does that on mine, too, if port 6112 is in use it uses 6113.
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Banana fanna fo fanna