During socket creation we will be making use of INET in case if IP address is IPv4 and INET6 incase of IPV6. During binding and connect operation we will make use of Strut sock_addrin for IPv4 and sock_sddrin6 for IPv6.
In my case client is IPV4 and server is IPv6 , the server supports dual stack operation so I think I can connect to server. Please inform if its not possible?
So while creating socket I need to use INET or INET6? Similar doubts on bind and connect. Which structures I need to make use of.