summaryrefslogtreecommitdiffstats
path: root/Doc/library/socket.rst
diff options
context:
space:
mode:
authorZackery Spytz <zspytz@gmail.com>2019-05-29 21:02:37 (GMT)
committerSteve Dower <steve.dower@python.org>2019-05-29 21:02:37 (GMT)
commit8f96c9f8ed2a4795e34b333411451e24f28f74d2 (patch)
tree0f87bcc9b18f6d6c907bd040e0bc9af794a155ba /Doc/library/socket.rst
parentfecb75c1bb46c818e6579ba422cfa5d0d9d104d1 (diff)
downloadcpython-8f96c9f8ed2a4795e34b333411451e24f28f74d2.zip
cpython-8f96c9f8ed2a4795e34b333411451e24f28f74d2.tar.gz
cpython-8f96c9f8ed2a4795e34b333411451e24f28f74d2.tar.bz2
bpo-37007: Implement socket.if_nametoindex(), if_indextoname() and if_nameindex() on Windows (GH-13522)
Diffstat (limited to 'Doc/library/socket.rst')
-rw-r--r--Doc/library/socket.rst15
1 files changed, 12 insertions, 3 deletions
diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst
index 5be2b76..e0dbbb4 100644
--- a/Doc/library/socket.rst
+++ b/Doc/library/socket.rst
@@ -1034,10 +1034,13 @@ The :mod:`socket` module also offers various network-related services:
(index int, name string) tuples.
:exc:`OSError` if the system call fails.
- .. availability:: Unix.
+ .. availability:: Unix, Windows.
.. versionadded:: 3.3
+ .. versionchanged:: 3.8
+ Windows support was added.
+
.. function:: if_nametoindex(if_name)
@@ -1045,10 +1048,13 @@ The :mod:`socket` module also offers various network-related services:
interface name.
:exc:`OSError` if no interface with the given name exists.
- .. availability:: Unix.
+ .. availability:: Unix, Windows.
.. versionadded:: 3.3
+ .. versionchanged:: 3.8
+ Windows support was added.
+
.. function:: if_indextoname(if_index)
@@ -1056,10 +1062,13 @@ The :mod:`socket` module also offers various network-related services:
interface index number.
:exc:`OSError` if no interface with the given index exists.
- .. availability:: Unix.
+ .. availability:: Unix, Windows.
.. versionadded:: 3.3
+ .. versionchanged:: 3.8
+ Windows support was added.
+
.. _socket-objects: