Sun Feb 23 01:32:01 EST 2014 geoff haven't look at this closely, but isn't the posixy getaddrinfo the new official way to do cope with v4 and v6?