get rid of erroneus register usage, and add a IPv6 version of inetsocket()