Ws2def.h

This section contains reference topics for the Ws2def.h header.

The Ws2def.h header contains definitions for the Winsock2 specification. It is included in Winsock2.h. User mode applications should include Winsock2.h rather than including Ws2def.h directly. Ws2def.h cannot be included by a module that also includes Winsock.h.

In this section

TopicDescription

CMSGHDR

The CMSGHDR structure defines the header for a control data object that is associated with a datagram.

SOCKADDR

The SOCKADDR structure is a generic structure that specifies a transport address.

SOCKADDR_IN

The SOCKADDR_IN structure specifies a transport address and port for the AF_INET address family.

SOCKADDR_STORAGE

The SOCKADDR_STORAGE structure is a generic structure that specifies a transport address.

SOCKET_ADDRESS_LIST

The SOCKET_ADDRESS_LIST structure defines a variable-sized list of transport addresses.

SO_BROADCAST

SO_CONDITIONAL_ACCEPT

SO_EXCLUSIVEADDRUSE

SO_KEEPALIVE

SO_RCVBUF

SO_REUSEADDR

SIO_ADDRESS_LIST_CHANGE

SIO_ADDRESS_LIST_QUERY

AF_INET

AF_INET6

 

 

 

Send comments about this topic to Microsoft

Show: