21.11.2014 16:45, Michal Kubecek wrote: > On Fri, Nov 21, 2014 at 02:01:09PM +0200, Vlad Khorsun wrote: >> 21.11.2014 13:11, Michal Kubecek wrote: >>> >>> That's unfortunate... I suppose the easiest way out of this would be >>> adding something like >>> >>> #ifdef WIN_NT >>> if (!host_str && /* Windows version < Vista */) >>> gai_hints.ai_family = AF_INET; >>> #endif >>> >>> This should also take care of XP/2003 with IPv6 support (making the >>> server listen on 0.0.0.0 by default). >> >> I can commit function which checks if IPv6 support is present (it will >> be based on WSAEnumProtocols). Can it help ? > > That would help to handle the case of IPv6 not supported.
Done. See os_utils::isIPv6supported(). Note, POSIX implementation just returns true. It could be changed to look for '/proc/net/if_inet6', for example, but i not sure it is necessary, as Linux kernels since v2.4 already have support for IPv6 (according to http://tldp.org/HOWTO/Linux+IPv6-HOWTO/systemcheck-kernel.html). Have no idea if and how it should be implemented in other *nixes (Darwin, etc)... Regards, Vlad ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel