title: How to support both IPv4 and IPv6 connections
body: <p>I'm currently working on a UDP socket application and I need to build in support so that IPV4 and IPV6 connections can send packets to a server. </p>
  
  <p>I was hoping that someone could help me out and point me in the right direction; the majority of the documentation that I found was not complete. It'd also be helpful if you could point out any differences between Winsock and BSD sockets.</p>
  
  <p>Thanks in advance!</p>