This section provides details on Winsock functions and structures that are specific to particular address families. Understanding these APIs is crucial for developing network applications that interact with different network protocols.

IPv4 (AF_INET)

APIs commonly used for IPv4 networking. This includes functions for resolving hostnames, managing sockets, and sending/receiving data over IPv4.

Note: While inet_addr and inet_ntoa are still widely used, getaddrinfo and getnameinfo are the recommended functions for their protocol-independent nature and improved IPv6 support.

IPv6 (AF_INET6)

APIs specifically designed or enhanced to support IPv6 networking. These functions handle IPv6 addresses, scopes, and the transition from IPv4 to IPv6.

Bluetooth (AF_BTH)

Functions and structures for developing applications that utilize Bluetooth networking through Winsock.

IrDA (AF_IRDA)

APIs for Infared Data Association networking, allowing devices to communicate over infrared links.

Raw Sockets (AF_PACKET)

APIs for creating and managing raw network sockets, allowing direct access to network packets.

Tip: When working with raw sockets, you are responsible for constructing and parsing all network protocol headers. This provides maximum flexibility but requires a deep understanding of network protocols.

This section serves as a gateway to the specific implementations within Winsock for different network protocols. Refer to individual API documentation for detailed usage, parameters, and return values.