Lluís Batlle i Rossell writes: > On Mon, Oct 03, 2011 at 11:58:08AM -0700, Gé Weijers wrote: >> >> >> On Mon, 3 Oct 2011, Lluís Batlle i Rossell wrote: >> >> >Additionally, I don't know how portable it is to use always getaddrinfo >> >(POSIX-2001?) while requiring C89. >> >> C89 does not address networking, so this issue is unrelated to C89. >> If getaddrinfo is not supported on a platform that uses the socket >> API it may be time to move away from it :-(
> :) I agree. I was just wondering, how old (or simple) systems/compilers we > expect fossil to build on. >> The only extra complexity it adds is that a server has to be able to >> listen to multiple sockets. Some OSes may give you a single socket >> that can handle both IPv4 and IPv6 connections, and others will not. > I know I know. But posix allows a 'setsockopt' to force it do both ipv4 and > ipv6 > in the same socket, isn't it? Different OSes have different 'defaults' for > that > though. IPV6_V6ONLY, and this patch explicitly disables that socket option to make sure that AF_INET6 socket should be able to receive IPv4 connections as well. HTH -- Ashish SHUKLA “Vengeance is mine; I will repay.” (Leo Tolstoy, "Anna Karenina", (1875–1877))
pgpaVuEjjmBpp.pgp
Description: PGP signature
_______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users