In the Internet address family, this structure is used by Windows Sockets to specify a local or remote endpoint address to which to connect a socket. This structure is IPv6-specific.
The IP address part of this structure is of type in6_addr.
If an application uses Windows Sockets 1.1 functions and requires IPv6 addresses, it may continue to use all the old functions that take the sockaddr structure as one of the parameters (bind (Windows Sockets), connect (Windows Sockets), sendto, recvfrom, accept (Windows Sockets), and so forth). The only change that is required is to use sockaddr_in6 instead of sockaddr_in.