On Tue, Jul 31, 2007 at 12:04:50PM +0200, Bastian Blank wrote: > On Mon, Jul 30, 2007 at 07:52:47PM +0200, Tomas Pospisek wrote: > > * Software that binds to the first socket found > > Then there's software that binds to the first port it gets and is > > difficult to teach not to do so. [2] > > There is nothing like a "first socket". Software either binds to any > address or to a specific address. Some software may lookup the "first" > ip, this is rather broken.
When using something like getaddrinfo() you get a list of addresses you can connect to. Software should try all those addresses until one of them works. If you only try the first one, things will break if the host you try to connect to has an IN AAAA address and you don't have ipv6 connectivity. Kurt -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

