I'm trying to make a neat wrapper that wraps the IP address structures. However, I'm grappling with how to make the class both IPv4 and IPv6 friendly. Can anyone provide any resources (code snippets, links, etc) that can shed some light on how I may approach my design?
Thanks!