From d6adab13a9865393a7152b83047d31b98c9ac6b7 Mon Sep 17 00:00:00 2001 From: "Gregory P. Smith" Date: Sat, 8 Feb 2025 19:43:01 +0000 Subject: [PATCH] mention AF_INET6 and IPv6 in socketserver docs. --- Doc/library/socketserver.rst | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Doc/library/socketserver.rst b/Doc/library/socketserver.rst index a01ed17f9ec6d6..59cfa136a3b7da 100644 --- a/Doc/library/socketserver.rst +++ b/Doc/library/socketserver.rst @@ -266,8 +266,11 @@ Server Objects .. attribute:: address_family - The family of protocols to which the server's socket belongs. - Common examples are :const:`socket.AF_INET` and :const:`socket.AF_UNIX`. + The family of protocols to which the server's socket belongs. Common + examples are :const:`socket.AF_INET`, :const:`socket.AF_INET6`, and + :const:`socket.AF_UNIX`. Subclass the TCP or UDP server classes in this + module with class attribute ``address_family = AF_INET6`` set if you + want IPv6 server classes. .. attribute:: RequestHandlerClass