New submission from Dmitry Tantsur <divius.ins...@gmail.com>:

These two calls are currently Unix-only in the socket module. However, Windows 
supports them starting with Vista:
https://docs.microsoft.com/en-us/windows/desktop/api/netioapi/nf-netioapi-if_indextoname
https://docs.microsoft.com/en-us/windows/desktop/api/netioapi/nf-netioapi-if_nametoindex

I checked with ctypes and they do seem to work. Unfortunately, if_nameindex is 
not implemented.

----------
components: Library (Lib)
messages: 343171
nosy: dtantsur
priority: normal
severity: normal
status: open
title: Implement socket.if_{nametoindex,indextoname} for Windows
type: enhancement
versions: Python 3.8

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue37007>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to