<div class="content" name="TSVIP_SOCKADDR" uuid="53383eb1-f61f-4013-8990-5a5c7b95e10b"><p>The <b>TSVIP_SOCKADDR</b> structure defines a socket
address.</p><dl>
<dd>
<div><pre> typedef  struct _TSVIP_SOCKADDR {
 #ifdef __midl
   union switch (unsigned short sin_family) u
   {
    case 2:                       // AF_INET
       struct {
           USHORT  sin_port;
           ULONG   in_addr;
           UCHAR   sin_zero[8];
       }  ipv4;
       case 23:                      // AF_INET6
         struct {
           USHORT  sin6_port;
           ULONG   sin6_flowinfo;
           USHORT  sin6_addr[8];
           ULONG   sin6_scope_id;
       } ipv6;
     };
 #else
     USHORT  sin_family;
     union
     {
       struct  {
           USHORT  sin_port;
           ULONG   in_addr;
           UCHAR   sin_zero[8];
      } ipv4;
       struct {
           USHORT  sin6_port;
           ULONG   sin6_flowinfo;
           USHORT  sin6_addr[8];
           ULONG   sin6_scope_id;
         }ipv6;
     } u;
 #endif
 } TSVIP_SOCKADDR,
   *PTSVIP_SOCKADDR;
</pre></div>
</dd></dl><p><b>ipv4:</b>  IPv4 address. For more
information, see <span><a href="https://go.microsoft.com/fwlink/?LinkId=93316" data-linktype="external">[MSDN-TDIADDRESS]</a></span>.</p><p><b>sin_port:</b>   Specifies a TCP or UDP
port number.</p><p><b>in_addr:</b>  Indicates the IP address.</p><p><b>sin_zero:</b>  An array filled with
zeros.</p><p><b>ipv6:</b>  IPv6 flow information.</p><p><b>sin6_port:</b>  Specifies a TCP or UDP
port number.</p><p><b>sin6_flowinfo:</b>  IPv6 flow
information.</p><p><b>sin6_addr:</b>   Indicates the IP
address.</p><p><b>sin6_scope_id:</b>   Set of interfaces
for a scope. For more information, see <span><a href="https://go.microsoft.com/fwlink/?LinkId=206745" data-linktype="external">[MSDN-SOCKADDR_IN6]</a></span>.</p></div>