title: API using sockaddr_storage
body: <p>I'm trying to do some IP agnostic coding and as suggested by various sources I tried to use sockaddr_storage. However all the API calls (getaddrinfo, getnameinfo) still depend on struct sockaddr. And casting between them isn't exactly a good option, gves rise to a lot of other problems.</p>
  
  <p>And casting to sockaddr_in and sockaddr_in6 separately sort of defeats the purpose of me trying to use sockaddr_storage.</p>
  
  <p>Anybody who has effectively used sockaddr_storage in devloping a simple client server socket application.</p>