(trunk libT) Refactor ipv6 bind socket check

This will let the RPC server use the same test mechanism eventually. Networking code belongs in net.c anyway.
This commit is contained in:
Erick Turnquist
2008-12-18 05:55:22 +00:00
parent 53b730420f
commit 72ee19dcca
3 changed files with 41 additions and 15 deletions

View File

@@ -87,6 +87,14 @@ void tr_normalizeV4Mapped( tr_address * const addr );
tr_bool tr_isAddress( const tr_address * a );
typedef struct tr_net_af_support
{
tr_bool has_inet6;
tr_bool needs_inet4;
} tr_net_af_support;
tr_net_af_support tr_net_getAFSupport( tr_port );
/***********************************************************************
* Socket list housekeeping
**********************************************************************/