Commit 443a43dc authored by Georg Brandl's avatar Georg Brandl

Closes #22249: use IPPROTO_TCP constant instead of SOL_TCP constant for getaddrinfo() proto param

parent e9e24b55
......@@ -265,7 +265,7 @@ The module :mod:`socket` exports the following constants and functions:
connection to ``www.python.org`` on port 80 (results may differ on your
system if IPv6 isn't enabled)::
>>> socket.getaddrinfo("www.python.org", 80, 0, 0, socket.SOL_TCP)
>>> socket.getaddrinfo("www.python.org", 80, 0, 0, socket.IPPROTO_TCP)
[(2, 1, 6, '', ('82.94.164.162', 80)),
(10, 1, 6, '', ('2001:888:2000:d::a2', 80, 0, 0))]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment