ID EN
Socket

AF_UNSPEC

Python 3.11

AF_UNSPEC means that getaddrinfo() should return socket addresses for any address family (either IPv4, IPv6, or any other) that can be used.

Syntax

PYTHON
socket.AF_UNSPEC

See Also

AF_UNSPEC getaddrinfo()