title: Translate IPv4 address to IPv6 mapped address
body: <p>I am trying to implement dual stack sockets, which wilol work with both IPv6 and IPv4. I opened a socket with <code>AF_INET6</code> family and set <code>IPV6_V6ONLY</code> to zero. So I actually should be able to work with both types of sockets. But when I am connecting to IPv4 address I got invalid argument error. I tried to add <code>::ffff:</code> prefix to address, but it did not work.</p>
  
  <p>Is there are a way to gently tanslate ipv4 address to ipv6 in order to be able to work with ipv6 socket ?</p>
  
  <p>Cheers.</p>