Skip to content

Commit 5ce70ad

Browse files
authored
gh-64414: mention AF_INET6 and IPv6 in socketserver docs. (#129866)
mention AF_INET6 and IPv6 in socketserver docs.
1 parent f2ae79d commit 5ce70ad

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Doc/library/socketserver.rst

+5-2
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,11 @@ Server Objects
266266

267267
.. attribute:: address_family
268268

269-
The family of protocols to which the server's socket belongs.
270-
Common examples are :const:`socket.AF_INET` and :const:`socket.AF_UNIX`.
269+
The family of protocols to which the server's socket belongs. Common
270+
examples are :const:`socket.AF_INET`, :const:`socket.AF_INET6`, and
271+
:const:`socket.AF_UNIX`. Subclass the TCP or UDP server classes in this
272+
module with class attribute ``address_family = AF_INET6`` set if you
273+
want IPv6 server classes.
271274

272275

273276
.. attribute:: RequestHandlerClass

0 commit comments

Comments
 (0)