Marek Habersack grendel@caudium.net writes:
The attached diff is not finished. I've just rediffed and adjusted whatever I could, but I have no more time today for keep working on it. The get_inet_addr function in system.c needs more work to get the families right (basically a few switch statements in there).
I've only had a first look at the code, and my first question is: Is there a good reason why the open_socket function need to take a family argument? To me, it seems a lot cleaner to just give it an address, and have the code examine the address to figure out which address family it is. (For numerical addresses, that's trivial, for dns names it's harder to get it right given that dns in general can return several addresses, and of different families, so one would need an "address list" API).
Regards, /Niels