summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorDavid CARLIER <devnexen@gmail.com>2022-03-17 20:40:00 (GMT)
committerGitHub <noreply@github.com>2022-03-17 20:40:00 (GMT)
commit33698e8ff40fcc67df3d95658e87196f8021de6f (patch)
tree77550df4636ef686630023de63d44c7569512ff1 /Doc
parent424dfc723137fb1ca8f3b5e4eb12ba3e669a9f52 (diff)
downloadcpython-33698e8ff40fcc67df3d95658e87196f8021de6f.zip
cpython-33698e8ff40fcc67df3d95658e87196f8021de6f.tar.gz
cpython-33698e8ff40fcc67df3d95658e87196f8021de6f.tar.bz2
bpo-46030: socket module add couple of FreeBSD constants. (GH-30018)
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Diffstat (limited to 'Doc')
-rwxr-xr-xDoc/library/socket.rst15
1 files changed, 15 insertions, 0 deletions
diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst
index 679631a..f8392ba 100755
--- a/Doc/library/socket.rst
+++ b/Doc/library/socket.rst
@@ -556,6 +556,21 @@ Constants
.. availability:: Linux >= 4.7.
+.. data:: SCM_CREDS2
+ LOCAL_CREDS
+ LOCAL_CREDS_PERSISTENT
+
+ LOCAL_CREDS and LOCAL_CREDS_PERSISTENT can be used
+ with SOCK_DGRAM, SOCK_STREAM sockets, equivalent to
+ Linux/DragonFlyBSD SO_PASSCRED, while LOCAL_CREDS
+ sends the credentials at first read, LOCAL_CREDS_PERSISTENT
+ sends for each read, SCM_CREDS2 must be then used for
+ the latter for the message type.
+
+ .. versionadded:: 3.11
+
+ .. availability:: FreeBSD.
+
Functions
^^^^^^^^^