Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
bdfa0ebf
Commit
bdfa0ebf
authored
Aug 23, 2016
by
R David Murray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#26907: add some missing getsockopt constants.
Patch by Christian Heimes, reviewed by Martin Panter.
parent
d44500cc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
0 deletions
+20
-0
Doc/library/socket.rst
Doc/library/socket.rst
+4
-0
Doc/whatsnew/3.6.rst
Doc/whatsnew/3.6.rst
+4
-0
Modules/socketmodule.c
Modules/socketmodule.c
+12
-0
No files found.
Doc/library/socket.rst
View file @
bdfa0ebf
...
...
@@ -281,6 +281,10 @@ Constants
in the Unix header files are defined; for a few symbols, default values are
provided.
.. versionchanged:: 3.6
``SO_DOMAIN``, ``SO_PROTOCOL``, ``SO_PEERSEC``, ``SO_PASSSEC``
were added.
.. data:: AF_CAN
PF_CAN
SOL_CAN_*
...
...
Doc/whatsnew/3.6.rst
View file @
bdfa0ebf
...
...
@@ -406,6 +406,10 @@ The :func:`~socket.socket.ioctl` function now supports the :data:`~socket.SIO_LO
control code.
(Contributed by Daniel Stokes in :issue:`26536`.)
The :meth:`~socket.socket.getsockopt` constants ``SO_DOMAIN``,
``SO_PROTOCOL``, ``SO_PEERSEC``, and ``SO_PASSSEC`` are now supported.
(Contributed by Christian Heimes in :issue:`26907`.)
socketserver
------------
...
...
Modules/socketmodule.c
View file @
bdfa0ebf
...
...
@@ -6582,6 +6582,12 @@ PyInit__socket(void)
#ifdef LOCAL_PEERCRED
PyModule_AddIntMacro
(
m
,
LOCAL_PEERCRED
);
#endif
#ifdef SO_PASSSEC
PyModule_AddIntMacro
(
m
,
SO_PASSSEC
);
#endif
#ifdef SO_PEERSEC
PyModule_AddIntMacro
(
m
,
SO_PEERSEC
);
#endif
#ifdef SO_BINDTODEVICE
PyModule_AddIntMacro
(
m
,
SO_BINDTODEVICE
);
#endif
...
...
@@ -6591,6 +6597,12 @@ PyInit__socket(void)
#ifdef SO_MARK
PyModule_AddIntMacro
(
m
,
SO_MARK
);
#endif
#ifdef SO_DOMAIN
PyModule_AddIntMacro
(
m
,
SO_DOMAIN
);
#endif
#ifdef SO_PROTOCOL
PyModule_AddIntMacro
(
m
,
SO_PROTOCOL
);
#endif
/* Maximum number of connections for "listen" */
#ifdef SOMAXCONN
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment