10000 [3.12] gh-64414: mention AF_INET6 and IPv6 in socketserver docs. (GH-… · python/cpython@d42eba8 · GitHub
[go: up one dir, main page]

Skip to content

Commit d42eba8

Browse files
[3.12] gh-64414: mention AF_INET6 and IPv6 in socketserver docs. (GH-129866) (#129869)
gh-64414: mention AF_INET6 and IPv6 in socketserver docs. (GH-129866) mention AF_INET6 and IPv6 in socketserver docs. (cherry picked from commit 5ce70ad) Co-authored-by: Gregory P. Smith <greg@krypto.org>
1 parent 5c527f8 commit d42eba8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Doc/library/socketserver.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,11 @@ Server Objects
260260

261261
.. attribute:: address_family
262262

263-
The family of protocols to which the server's socket belongs.
264-
Common examples are :const:`socket.AF_INET` and :const:`socket.AF_UNIX`.
263+
The family of protocols to which the server's socket belongs. Common
264+
examples are :const:`socket.AF_INET`, :const:`socket.AF_INET6`, and
265+
:const:`socket.AF_UNIX`. Subclass the TCP or UDP server classes in this
266+
module with class attribute ``address_family = AF_INET6`` set if you
267+
want IPv6 server classes.
265268

266269

267270
.. attribute:: RequestHandlerClass

0 commit comments

Comments
 (0)
0