mirror of
https://github.com/python/cpython.git
synced 2025-08-13 13:29:13 +00:00
Issue #12619: Expose socket.SO_BINDTODEVICE constant
This commit is contained in:
parent
8b905bd9d4
commit
cb98bed299
1 changed files with 3 additions and 0 deletions
|
@ -5772,6 +5772,9 @@ PyInit__socket(void)
|
||||||
#ifdef LOCAL_PEERCRED
|
#ifdef LOCAL_PEERCRED
|
||||||
PyModule_AddIntConstant(m, "LOCAL_PEERCRED", LOCAL_PEERCRED);
|
PyModule_AddIntConstant(m, "LOCAL_PEERCRED", LOCAL_PEERCRED);
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef SO_BINDTODEVICE
|
||||||
|
PyModule_AddIntMacro(m, SO_BINDTODEVICE);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Maximum number of connections for "listen" */
|
/* Maximum number of connections for "listen" */
|
||||||
#ifdef SOMAXCONN
|
#ifdef SOMAXCONN
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue