Add IPv4 and IPv6 function definitions

Seems like these should publicly listed, they are referenced under listen function without being defined elsewhere.