chunk_id
stringlengths
36
36
source
stringclasses
35 values
source_url
stringlengths
0
290
upstream_license
stringclasses
1 value
document_id
stringlengths
36
36
chunk_index
int64
0
324k
retrieved_at
stringclasses
2 values
chunker_version
stringclasses
4 values
content_hash
stringlengths
15
64
content
stringlengths
50
44.7k
namespace
stringclasses
9 values
source_name
stringclasses
35 values
raw_text
stringlengths
50
44.7k
cleaned_text
stringlengths
50
44.7k
tags
stringclasses
49 values
collection_name
stringclasses
11 values
4489ec88-fe86-4713-a426-02a4e475bbe7
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,910
supabase-export-v2
b3b0cd64fbd94e54
.. index:: pair: module; struct Set the value of the given socket option (see the Unix manual page :manpage:`setsockopt(2)`). The needed symbolic constants are defined in this module (:ref:`!SO_\* etc. <socket-unix-constants>`). The value can be an integer, ``None`` or a :term:`bytes-like object` representing a buff...
trusted_official_docs
CPython Docs
.. index:: pair: module; struct Set the value of the given socket option (see the Unix manual page :manpage:`setsockopt(2)`). The needed symbolic constants are defined in this module (:ref:`!SO_\* etc. <socket-unix-constants>`). The value can be an integer, ``None`` or a :term:`bytes-like object` representing a buff...
.. index:: pair: module; struct Set the value of the given socket option (see the Unix manual page :manpage:`setsockopt(2)`). The needed symbolic constants are defined in this module (:ref:`!SO_\* etc. <socket-unix-constants>`). The value can be an integer, ``None`` or a :term:`bytes-like object` representing a buff...
python, official-docs, cpython, P0
Local_Trusted_Corpus
44fa2859-3772-4d7c-8981-12d5c611ed21
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,845
supabase-export-v2
1372efa18117a81a
versionchanged:: 3.7 For multicast IPv6 address, first item of *address* does not contain ``%scope_id`` part anymore. In order to get full IPv6 address use :func:`getnameinfo`. .. method:: socket.recvmsg(bufsize[, ancbufsize[, flags]])
trusted_official_docs
CPython Docs
versionchanged:: 3.7 For multicast IPv6 address, first item of *address* does not contain ``%scope_id`` part anymore. In order to get full IPv6 address use :func:`getnameinfo`. .. method:: socket.recvmsg(bufsize[, ancbufsize[, flags]])
versionchanged:: 3.7 For multicast IPv6 address, first item of *address* does not contain ``%scope_id`` part anymore. In order to get full IPv6 address use :func:`getnameinfo`. .. method:: socket.recvmsg(bufsize[, ancbufsize[, flags]])
python, official-docs, cpython, P0
Local_Trusted_Corpus
452d4ee5-4e57-46a8-904d-c6f6cfd2c356
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,911
supabase-export-v2
cfef6ef69cef5af0
C structures as bytestrings). When *value* is set to ``None``, *optlen* argument is required. It's equivalent to calling :c:func:`setsockopt` C function with ``optval=NULL`` and ``optlen=optlen``. .. versionchanged:: 3.5 Writable :term:`bytes-like object` is now accepted.
trusted_official_docs
CPython Docs
C structures as bytestrings). When *value* is set to ``None``, *optlen* argument is required. It's equivalent to calling :c:func:`setsockopt` C function with ``optval=NULL`` and ``optlen=optlen``. .. versionchanged:: 3.5 Writable :term:`bytes-like object` is now accepted.
C structures as bytestrings). When *value* is set to ``None``, *optlen* argument is required. It's equivalent to calling :c:func:`setsockopt` C function with ``optval=NULL`` and ``optlen=optlen``. .. versionchanged:: 3.5 Writable :term:`bytes-like object` is now accepted.
python, official-docs, cpython, P0
Local_Trusted_Corpus
455e1f4e-ed6d-4cd3-bebc-ea5ca4734240
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,936
supabase-export-v2
1d7ec9cb198d0191
Example ------- Here are four minimal example programs using the TCP/IP protocol: a server that echoes all data that it receives back (servicing only one client), and a client using it. Note that a server must perform the sequence :func:`~socket.socket`, :meth:`~socket.bind`, :meth:`~socket.listen`, :meth:`~socket.acce...
trusted_official_docs
CPython Docs
Example ------- Here are four minimal example programs using the TCP/IP protocol: a server that echoes all data that it receives back (servicing only one client), and a client using it. Note that a server must perform the sequence :func:`~socket.socket`, :meth:`~socket.bind`, :meth:`~socket.listen`, :meth:`~socket.acce...
Example ------- Here are four minimal example programs using the TCP/IP protocol: a server that echoes all data that it receives back (servicing only one client), and a client using it. Note that a server must perform the sequence :func:`~socket.socket`, :meth:`~socket.bind`, :meth:`~socket.listen`, :meth:`~socket.acce...
python, official-docs, cpython, P0
Local_Trusted_Corpus
45c8ffe1-a439-4857-b995-a861c3668c32
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,378
supabase-export-v2
49c93bc64d657720
For multicast addresses (with *scope_id* meaningful) *address* may not contain ``%scope_id`` (or ``zone id``) part. This information is superfluous and may be safely omitted (recommended). - :const:`AF_NETLINK` sockets are represented as pairs ``(pid, groups)``.
trusted_official_docs
CPython Docs
For multicast addresses (with *scope_id* meaningful) *address* may not contain ``%scope_id`` (or ``zone id``) part. This information is superfluous and may be safely omitted (recommended). - :const:`AF_NETLINK` sockets are represented as pairs ``(pid, groups)``.
For multicast addresses (with *scope_id* meaningful) *address* may not contain ``%scope_id`` (or ``zone id``) part. This information is superfluous and may be safely omitted (recommended). - :const:`AF_NETLINK` sockets are represented as pairs ``(pid, groups)``.
python, official-docs, cpython, P0
Local_Trusted_Corpus
46365f70-f81b-44e9-9af1-b611ef8cbd84
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,730
supabase-export-v2
51d9b4001408d028
number) for new socket objects. When the socket module is first imported, the default is ``None``. See :meth:`~socket.settimeout` for possible values and their respective meanings. .. versionchanged:: 3.15 Accepts any real number, not only integer or float.
trusted_official_docs
CPython Docs
number) for new socket objects. When the socket module is first imported, the default is ``None``. See :meth:`~socket.settimeout` for possible values and their respective meanings. .. versionchanged:: 3.15 Accepts any real number, not only integer or float.
number) for new socket objects. When the socket module is first imported, the default is ``None``. See :meth:`~socket.settimeout` for possible values and their respective meanings. .. versionchanged:: 3.15 Accepts any real number, not only integer or float.
python, official-docs, cpython, P0
Local_Trusted_Corpus
47291d7c-59f7-4e47-a7e8-396036ff2ee1
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,618
supabase-export-v2
31f7099ccf83e30e
program as standard input or output (such as a server started by the Unix inet daemon). The socket is assumed to be in blocking mode. The newly created socket is :ref:`non-inheritable <fd_inheritance>`.
trusted_official_docs
CPython Docs
program as standard input or output (such as a server started by the Unix inet daemon). The socket is assumed to be in blocking mode. The newly created socket is :ref:`non-inheritable <fd_inheritance>`.
program as standard input or output (such as a server started by the Unix inet daemon). The socket is assumed to be in blocking mode. The newly created socket is :ref:`non-inheritable <fd_inheritance>`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
47cd96ca-e8ed-4d0f-88a3-2ac22becd6f4
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,379
supabase-export-v2
db9f96647ecb5239
- :const:`AF_NETLINK` sockets are represented as pairs ``(pid, groups)``. - Linux-only support for TIPC is available using the :const:`AF_TIPC` address family. TIPC is an open, non-IP based networked protocol designed for use in clustered computer environments. Addresses are represented by a tuple, and the fields de...
trusted_official_docs
CPython Docs
- :const:`AF_NETLINK` sockets are represented as pairs ``(pid, groups)``. - Linux-only support for TIPC is available using the :const:`AF_TIPC` address family. TIPC is an open, non-IP based networked protocol designed for use in clustered computer environments. Addresses are represented by a tuple, and the fields de...
- :const:`AF_NETLINK` sockets are represented as pairs ``(pid, groups)``. - Linux-only support for TIPC is available using the :const:`AF_TIPC` address family. TIPC is an open, non-IP based networked protocol designed for use in clustered computer environments. Addresses are represented by a tuple, and the fields de...
python, official-docs, cpython, P0
Local_Trusted_Corpus
487a67fe-d5ee-4988-bf8a-cd6a6421dbbc
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,928
supabase-export-v2
0fc22cb20995f16f
fail if they cannot be completed within the timeout specified for the socket (they raise a :exc:`timeout` exception) or if the system returns an error. .. note:: At the operating system level, sockets in *timeout mode* are internally set in non-blocking mode. Also, the blocking and timeout modes are shared between f...
trusted_official_docs
CPython Docs
fail if they cannot be completed within the timeout specified for the socket (they raise a :exc:`timeout` exception) or if the system returns an error. .. note:: At the operating system level, sockets in *timeout mode* are internally set in non-blocking mode. Also, the blocking and timeout modes are shared between f...
fail if they cannot be completed within the timeout specified for the socket (they raise a :exc:`timeout` exception) or if the system returns an error. .. note:: At the operating system level, sockets in *timeout mode* are internally set in non-blocking mode. Also, the blocking and timeout modes are shared between f...
python, official-docs, cpython, P0
Local_Trusted_Corpus
491f5774-cfcb-4fe4-b3b9-87f562fbe8f5
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,929
supabase-export-v2
7f2551b8d29b7312
that refer to the same network endpoint. This implementation detail can have visible consequences if e.g. you decide to use the :meth:`~socket.fileno` of a socket. Timeouts and the ``connect`` method ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
trusted_official_docs
CPython Docs
that refer to the same network endpoint. This implementation detail can have visible consequences if e.g. you decide to use the :meth:`~socket.fileno` of a socket. Timeouts and the ``connect`` method ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
that refer to the same network endpoint. This implementation detail can have visible consequences if e.g. you decide to use the :meth:`~socket.fileno` of a socket. Timeouts and the ``connect`` method ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
python, official-docs, cpython, P0
Local_Trusted_Corpus
49510bfa-b7ed-46af-9c94-df08df53a204
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,866
supabase-export-v2
b0d4ddd2c66ccf20
.. method:: socket.send(bytes[, flags]) Send data to the socket. The socket must be connected to a remote socket. The optional *flags* argument has the same meaning as for :meth:`recv`. Returns the number of bytes sent. Applications are responsible for checking that all data has been sent; if only some of the data wa...
trusted_official_docs
CPython Docs
.. method:: socket.send(bytes[, flags]) Send data to the socket. The socket must be connected to a remote socket. The optional *flags* argument has the same meaning as for :meth:`recv`. Returns the number of bytes sent. Applications are responsible for checking that all data has been sent; if only some of the data wa...
.. method:: socket.send(bytes[, flags]) Send data to the socket. The socket must be connected to a remote socket. The optional *flags* argument has the same meaning as for :meth:`recv`. Returns the number of bytes sent. Applications are responsible for checking that all data has been sent; if only some of the data wa...
python, official-docs, cpython, P0
Local_Trusted_Corpus
49edd622-c6b0-4460-acfd-1d2ed1382506
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,468
supabase-export-v2
1a5fa2d6b37ce458
``TCP_THIN_LINEAR_TIMEOUTS``, ``TCP_THIN_DUPACK``, ``TCP_REPAIR``, ``TCP_REPAIR_QUEUE``, ``TCP_QUEUE_SEQ``, ``TCP_REPAIR_OPTIONS``, ``TCP_TIMESTAMP``, ``TCP_CC_INFO``, ``TCP_SAVE_SYN``, ``TCP_SAVED_SYN``, ``TCP_REPAIR_WINDOW``, ``TCP_FASTOPEN_CONNECT``, ``TCP_ULP``, ``TCP_MD5SIG_EXT``, ``TCP_FASTOPEN_KEY``, ``TCP_FASTO...
trusted_official_docs
CPython Docs
``TCP_THIN_LINEAR_TIMEOUTS``, ``TCP_THIN_DUPACK``, ``TCP_REPAIR``, ``TCP_REPAIR_QUEUE``, ``TCP_QUEUE_SEQ``, ``TCP_REPAIR_OPTIONS``, ``TCP_TIMESTAMP``, ``TCP_CC_INFO``, ``TCP_SAVE_SYN``, ``TCP_SAVED_SYN``, ``TCP_REPAIR_WINDOW``, ``TCP_FASTOPEN_CONNECT``, ``TCP_ULP``, ``TCP_MD5SIG_EXT``, ``TCP_FASTOPEN_KEY``, ``TCP_FASTO...
``TCP_THIN_LINEAR_TIMEOUTS``, ``TCP_THIN_DUPACK``, ``TCP_REPAIR``, ``TCP_REPAIR_QUEUE``, ``TCP_QUEUE_SEQ``, ``TCP_REPAIR_OPTIONS``, ``TCP_TIMESTAMP``, ``TCP_CC_INFO``, ``TCP_SAVE_SYN``, ``TCP_SAVED_SYN``, ``TCP_REPAIR_WINDOW``, ``TCP_FASTOPEN_CONNECT``, ``TCP_ULP``, ``TCP_MD5SIG_EXT``, ``TCP_FASTOPEN_KEY``, ``TCP_FASTO...
python, official-docs, cpython, P0
Local_Trusted_Corpus
4a464794-e538-44b9-bef9-7609232ce221
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,541
supabase-export-v2
42355bd619ef392a
Used in the option name and value argument to the :meth:`~socket.setsockopt` and :meth:`~socket.getsockopt` methods of Bluetooth socket objects. :const:`!BT_*` and :const:`L2CAP_LM` are only available on Linux. :const:`!SO_BTH_*` are only available on Windows. Other constants may be available on Linux and various BSD p...
trusted_official_docs
CPython Docs
Used in the option name and value argument to the :meth:`~socket.setsockopt` and :meth:`~socket.getsockopt` methods of Bluetooth socket objects. :const:`!BT_*` and :const:`L2CAP_LM` are only available on Linux. :const:`!SO_BTH_*` are only available on Windows. Other constants may be available on Linux and various BSD p...
Used in the option name and value argument to the :meth:`~socket.setsockopt` and :meth:`~socket.getsockopt` methods of Bluetooth socket objects. :const:`!BT_*` and :const:`L2CAP_LM` are only available on Linux. :const:`!SO_BTH_*` are only available on Windows. Other constants may be available on Linux and various BSD p...
python, official-docs, cpython, P0
Local_Trusted_Corpus
4a5372ce-6e85-448c-a2fe-47439507c122
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,578
supabase-export-v2
504ed088ccc708ec
.. class:: socket(family=AF_INET, type=SOCK_STREAM, proto=0, fileno=None) Create a new socket using the given address family, socket type and protocol number. The address family should be :const:`AF_INET` (the default), :const:`AF_INET6`, :const:`AF_UNIX`, :const:`AF_CAN`, :const:`AF_PACKET`, or :const:`AF_RDS`. The...
trusted_official_docs
CPython Docs
.. class:: socket(family=AF_INET, type=SOCK_STREAM, proto=0, fileno=None) Create a new socket using the given address family, socket type and protocol number. The address family should be :const:`AF_INET` (the default), :const:`AF_INET6`, :const:`AF_UNIX`, :const:`AF_CAN`, :const:`AF_PACKET`, or :const:`AF_RDS`. The...
.. class:: socket(family=AF_INET, type=SOCK_STREAM, proto=0, fileno=None) Create a new socket using the given address family, socket type and protocol number. The address family should be :const:`AF_INET` (the default), :const:`AF_INET6`, :const:`AF_UNIX`, :const:`AF_CAN`, :const:`AF_PACKET`, or :const:`AF_RDS`. The...
python, official-docs, cpython, P0
Local_Trusted_Corpus
4aa41ebc-cfff-4c56-b133-4deffbeaa603
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,423
supabase-export-v2
7a9b430eb1115661
- When used as a bind accepts connection from the parent partition. When used as an address target it will connect to the parent partition. The ``service_id`` is the service identifier of the registered service.
trusted_official_docs
CPython Docs
- When used as a bind accepts connection from the parent partition. When used as an address target it will connect to the parent partition. The ``service_id`` is the service identifier of the registered service.
- When used as a bind accepts connection from the parent partition. When used as an address target it will connect to the parent partition. The ``service_id`` is the service identifier of the registered service.
python, official-docs, cpython, P0
Local_Trusted_Corpus
4de3bd55-01e9-4d91-b1da-604f63366793
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,479
supabase-export-v2
1ceb1b1d01e98bcf
.. data:: CAN_BCM CAN_BCM_* CAN_BCM, in the CAN protocol family, is the broadcast manager (BCM) protocol. Broadcast manager constants, documented in the Linux documentation, are also defined in the socket module.
trusted_official_docs
CPython Docs
.. data:: CAN_BCM CAN_BCM_* CAN_BCM, in the CAN protocol family, is the broadcast manager (BCM) protocol. Broadcast manager constants, documented in the Linux documentation, are also defined in the socket module.
.. data:: CAN_BCM CAN_BCM_* CAN_BCM, in the CAN protocol family, is the broadcast manager (BCM) protocol. Broadcast manager constants, documented in the Linux documentation, are also defined in the socket module.
python, official-docs, cpython, P0
Local_Trusted_Corpus
4eacda28-a666-4be6-be8b-fe719f7ed185
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,840
supabase-export-v2
01410e2f192ab1a1
object indicates that the client has disconnected. See the Unix manual page :manpage:`recv(2)` for the meaning of the optional argument *flags*; it defaults to zero. .. versionchanged:: 3.5 If the system call is interrupted and the signal handler does not raise an exception, the method now retries the system call ins...
trusted_official_docs
CPython Docs
object indicates that the client has disconnected. See the Unix manual page :manpage:`recv(2)` for the meaning of the optional argument *flags*; it defaults to zero. .. versionchanged:: 3.5 If the system call is interrupted and the signal handler does not raise an exception, the method now retries the system call ins...
object indicates that the client has disconnected. See the Unix manual page :manpage:`recv(2)` for the meaning of the optional argument *flags*; it defaults to zero. .. versionchanged:: 3.5 If the system call is interrupted and the signal handler does not raise an exception, the method now retries the system call ins...
python, official-docs, cpython, P0
Local_Trusted_Corpus
4f3e50e5-36fb-42f7-b02d-ef8c686a63a7
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,633
supabase-export-v2
7faafea7705bd601
the list of addresses returned. Pass their default values (:data:`AF_UNSPEC`, 0, and 0, respectively) to not limit the results. See the note below for details. The *flags* argument can be one or several of the ``AI_*`` constants, and will influence how results are computed and returned. For example, :const:`AI_NUMERIC...
trusted_official_docs
CPython Docs
the list of addresses returned. Pass their default values (:data:`AF_UNSPEC`, 0, and 0, respectively) to not limit the results. See the note below for details. The *flags* argument can be one or several of the ``AI_*`` constants, and will influence how results are computed and returned. For example, :const:`AI_NUMERIC...
the list of addresses returned. Pass their default values (:data:`AF_UNSPEC`, 0, and 0, respectively) to not limit the results. See the note below for details. The *flags* argument can be one or several of the ``AI_*`` constants, and will influence how results are computed and returned. For example, :const:`AI_NUMERIC...
python, official-docs, cpython, P0
Local_Trusted_Corpus
51fef39f-6e28-4d61-a0fe-bc6088758c16
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,401
supabase-export-v2
1314ea604883115a
- *type* is the algorithm type as string, e.g. ``aead``, ``hash``, ``skcipher`` or ``rng``. - *name* is the algorithm name and operation mode as string, e.g. ``sha256``, ``hmac(sha256)``, ``cbc(aes)`` or ``drbg_nopr_ctr_aes256``.
trusted_official_docs
CPython Docs
- *type* is the algorithm type as string, e.g. ``aead``, ``hash``, ``skcipher`` or ``rng``. - *name* is the algorithm name and operation mode as string, e.g. ``sha256``, ``hmac(sha256)``, ``cbc(aes)`` or ``drbg_nopr_ctr_aes256``.
- *type* is the algorithm type as string, e.g. ``aead``, ``hash``, ``skcipher`` or ``rng``. - *name* is the algorithm name and operation mode as string, e.g. ``sha256``, ``hmac(sha256)``, ``cbc(aes)`` or ``drbg_nopr_ctr_aes256``.
python, official-docs, cpython, P0
Local_Trusted_Corpus
52a472c9-013f-4a50-90ab-cdf0b31ab319
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,437
supabase-export-v2
4fd26a97fd6b21ce
.. exception:: gaierror A subclass of :exc:`OSError`, this exception is raised for address-related errors by :func:`getaddrinfo` and :func:`getnameinfo`. The accompanying value is a pair ``(error, string)`` representing an error returned by a library call. *string* represents the description of *error*, as returned ...
trusted_official_docs
CPython Docs
.. exception:: gaierror A subclass of :exc:`OSError`, this exception is raised for address-related errors by :func:`getaddrinfo` and :func:`getnameinfo`. The accompanying value is a pair ``(error, string)`` representing an error returned by a library call. *string* represents the description of *error*, as returned ...
.. exception:: gaierror A subclass of :exc:`OSError`, this exception is raised for address-related errors by :func:`getaddrinfo` and :func:`getnameinfo`. The accompanying value is a pair ``(error, string)`` representing an error returned by a library call. *string* represents the description of *error*, as returned ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
54374745-7ddb-4ed7-bd39-11eadc5f4514
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,381
supabase-export-v2
3177a18a0513185f
:const:`TIPC_ZONE_SCOPE`, :const:`TIPC_CLUSTER_SCOPE`, and :const:`TIPC_NODE_SCOPE`. - If *addr_type* is :const:`TIPC_ADDR_NAME`, then *v1* is the server type, *v2* is the port identifier, and *v3* should be 0. If *addr_type* is :const:`TIPC_ADDR_NAMESEQ`, then *v1* is the server type, *v2* is the lower port number, a...
trusted_official_docs
CPython Docs
:const:`TIPC_ZONE_SCOPE`, :const:`TIPC_CLUSTER_SCOPE`, and :const:`TIPC_NODE_SCOPE`. - If *addr_type* is :const:`TIPC_ADDR_NAME`, then *v1* is the server type, *v2* is the port identifier, and *v3* should be 0. If *addr_type* is :const:`TIPC_ADDR_NAMESEQ`, then *v1* is the server type, *v2* is the lower port number, a...
:const:`TIPC_ZONE_SCOPE`, :const:`TIPC_CLUSTER_SCOPE`, and :const:`TIPC_NODE_SCOPE`. - If *addr_type* is :const:`TIPC_ADDR_NAME`, then *v1* is the server type, *v2* is the port identifier, and *v3* should be 0. If *addr_type* is :const:`TIPC_ADDR_NAMESEQ`, then *v1* is the server type, *v2* is the lower port number, a...
python, official-docs, cpython, P0
Local_Trusted_Corpus
55c4b33b-db0e-46c7-a01c-d47a58280bd3
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,689
supabase-export-v2
ac249a0befb751e4
.. function:: ntohs(x) Convert 16-bit positive integers from network to host byte order. On machines where the host byte order is the same as network byte order, this is a no-op; otherwise, it performs a 2-byte swap operation.
trusted_official_docs
CPython Docs
.. function:: ntohs(x) Convert 16-bit positive integers from network to host byte order. On machines where the host byte order is the same as network byte order, this is a no-op; otherwise, it performs a 2-byte swap operation.
.. function:: ntohs(x) Convert 16-bit positive integers from network to host byte order. On machines where the host byte order is the same as network byte order, this is a no-op; otherwise, it performs a 2-byte swap operation.
python, official-docs, cpython, P0
Local_Trusted_Corpus
566cb037-b804-4371-8de8-c887fc2d5357
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,864
supabase-export-v2
6b9e231ddeb7cd9b
.. method:: socket.recv_into(buffer[, nbytes[, flags]]) Receive up to *nbytes* bytes from the socket, storing the data into a buffer rather than creating a new bytestring. If *nbytes* is not specified (or 0), receive up to the size available in the given buffer. Returns the number of bytes received. See the Unix man...
trusted_official_docs
CPython Docs
.. method:: socket.recv_into(buffer[, nbytes[, flags]]) Receive up to *nbytes* bytes from the socket, storing the data into a buffer rather than creating a new bytestring. If *nbytes* is not specified (or 0), receive up to the size available in the given buffer. Returns the number of bytes received. See the Unix man...
.. method:: socket.recv_into(buffer[, nbytes[, flags]]) Receive up to *nbytes* bytes from the socket, storing the data into a buffer rather than creating a new bytestring. If *nbytes* is not specified (or 0), receive up to the size available in the given buffer. Returns the number of bytes received. See the Unix man...
python, official-docs, cpython, P0
Local_Trusted_Corpus
56ce2eb2-faf5-48fc-b390-35e17837067f
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,926
supabase-export-v2
bd86247b86b26cde
* In *blocking mode*, operations block until complete or the system returns an error (such as connection timed out). * In *non-blocking mode*, operations fail (with an error that is unfortunately system-dependent) if they cannot be completed immediately: functions from the :mod:`select` module can be used to know whe...
trusted_official_docs
CPython Docs
* In *blocking mode*, operations block until complete or the system returns an error (such as connection timed out). * In *non-blocking mode*, operations fail (with an error that is unfortunately system-dependent) if they cannot be completed immediately: functions from the :mod:`select` module can be used to know whe...
* In *blocking mode*, operations block until complete or the system returns an error (such as connection timed out). * In *non-blocking mode*, operations fail (with an error that is unfortunately system-dependent) if they cannot be completed immediately: functions from the :mod:`select` module can be used to know whe...
python, official-docs, cpython, P0
Local_Trusted_Corpus
5813199e-21f5-410a-a8dc-08dad5ee4f96
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,555
supabase-export-v2
0a94a3fc2a262934
.. 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 us...
trusted_official_docs
CPython Docs
.. 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 us...
.. 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 us...
python, official-docs, cpython, P0
Local_Trusted_Corpus
588c7acf-a3fa-489f-a370-7c8a0ce459fd
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,915
supabase-export-v2
ced8a44b7a58d201
.. method:: socket.shutdown(how) Shut down one or both halves of the connection. If *how* is :const:`SHUT_RD`, further receives are disallowed. If *how* is :const:`SHUT_WR`, further sends are disallowed. If *how* is :const:`SHUT_RDWR`, further sends and receives are disallowed.
trusted_official_docs
CPython Docs
.. method:: socket.shutdown(how) Shut down one or both halves of the connection. If *how* is :const:`SHUT_RD`, further receives are disallowed. If *how* is :const:`SHUT_WR`, further sends are disallowed. If *how* is :const:`SHUT_RDWR`, further sends and receives are disallowed.
.. method:: socket.shutdown(how) Shut down one or both halves of the connection. If *how* is :const:`SHUT_RD`, further receives are disallowed. If *how* is :const:`SHUT_WR`, further sends are disallowed. If *how* is :const:`SHUT_RDWR`, further sends and receives are disallowed.
python, official-docs, cpython, P0
Local_Trusted_Corpus
5a12cda7-7eab-454b-993f-19ce747b4679
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,823
supabase-export-v2
06cdcf555816ea23
The :meth:`ioctl` method is a limited interface to the WSAIoctl system interface. Please refer to the `Win32 documentation <https://msdn.microsoft.com/en-us/library/ms741621%28VS.85%29.aspx>`_ for more information. On other platforms, the generic :func:`fcntl.fcntl` and :func:`fcntl.ioctl` functions may be used; they ...
trusted_official_docs
CPython Docs
The :meth:`ioctl` method is a limited interface to the WSAIoctl system interface. Please refer to the `Win32 documentation <https://msdn.microsoft.com/en-us/library/ms741621%28VS.85%29.aspx>`_ for more information. On other platforms, the generic :func:`fcntl.fcntl` and :func:`fcntl.ioctl` functions may be used; they ...
The :meth:`ioctl` method is a limited interface to the WSAIoctl system interface. Please refer to the `Win32 documentation <https://msdn.microsoft.com/en-us/library/ms741621%28VS.85%29.aspx>`_ for more information. On other platforms, the generic :func:`fcntl.fcntl` and :func:`fcntl.ioctl` functions may be used; they ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
5a1a82bc-1072-4e55-b699-073fcae7f1a6
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,975
supabase-export-v2
b904ea4f28e3a5ec
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) s.bind((HOST, PORT)) the :data:`SO_REUSEADDR` flag tells the kernel to reuse a local socket in ``TIME_WAIT`` state, without waiting for its natural timeout to expire.
trusted_official_docs
CPython Docs
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) s.bind((HOST, PORT)) the :data:`SO_REUSEADDR` flag tells the kernel to reuse a local socket in ``TIME_WAIT`` state, without waiting for its natural timeout to expire.
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) s.bind((HOST, PORT)) the :data:`SO_REUSEADDR` flag tells the kernel to reuse a local socket in ``TIME_WAIT`` state, without waiting for its natural timeout to expire.
python, official-docs, cpython, P0
Local_Trusted_Corpus
5a8bb00d-ca8f-4960-a5cd-66e1fc876cdc
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,651
supabase-export-v2
986c15341ad698ca
.. function:: getfqdn([name]) Return a fully qualified domain name for *name*. If *name* is omitted or empty, it is interpreted as the local host. To find the fully qualified name, the hostname returned by :func:`gethostbyaddr` is checked, followed by aliases for the host, if available. The first name which includes...
trusted_official_docs
CPython Docs
.. function:: getfqdn([name]) Return a fully qualified domain name for *name*. If *name* is omitted or empty, it is interpreted as the local host. To find the fully qualified name, the hostname returned by :func:`gethostbyaddr` is checked, followed by aliases for the host, if available. The first name which includes...
.. function:: getfqdn([name]) Return a fully qualified domain name for *name*. If *name* is omitted or empty, it is interpreted as the local host. To find the fully qualified name, the hostname returned by :func:`gethostbyaddr` is checked, followed by aliases for the host, if available. The first name which includes...
python, official-docs, cpython, P0
Local_Trusted_Corpus
5a8f27e7-8e35-431e-af25-faa342157297
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,712
supabase-export-v2
45a76ddd219b74af
(for example, ``'7.10.0.5'`` or ``'5aef:2b::8'``). :func:`inet_ntop` is useful when a library or network protocol returns an object of type :c:struct:`in_addr` (similar to :func:`inet_ntoa`) or :c:struct:`in6_addr`. Supported values for *address_family* are currently :const:`AF_INET` and :const:`AF_INET6`. If the byte...
trusted_official_docs
CPython Docs
(for example, ``'7.10.0.5'`` or ``'5aef:2b::8'``). :func:`inet_ntop` is useful when a library or network protocol returns an object of type :c:struct:`in_addr` (similar to :func:`inet_ntoa`) or :c:struct:`in6_addr`. Supported values for *address_family* are currently :const:`AF_INET` and :const:`AF_INET6`. If the byte...
(for example, ``'7.10.0.5'`` or ``'5aef:2b::8'``). :func:`inet_ntop` is useful when a library or network protocol returns an object of type :c:struct:`in_addr` (similar to :func:`inet_ntoa`) or :c:struct:`in6_addr`. Supported values for *address_family* are currently :const:`AF_INET` and :const:`AF_INET6`. If the byte...
python, official-docs, cpython, P0
Local_Trusted_Corpus
5a926258-a562-4d5a-bd79-b93e8414bf92
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,416
supabase-export-v2
beb6c0bad9c14fce
.. versionadded:: 3.8 - :const:`IPPROTO_UDPLITE` is a variant of UDP which allows you to specify what portion of a packet is covered with the checksum. It adds two socket options that you can change. ``self.setsockopt(IPPROTO_UDPLITE, UDPLITE_SEND_CSCOV, length)`` will change what portion of outgoing packets are cov...
trusted_official_docs
CPython Docs
.. versionadded:: 3.8 - :const:`IPPROTO_UDPLITE` is a variant of UDP which allows you to specify what portion of a packet is covered with the checksum. It adds two socket options that you can change. ``self.setsockopt(IPPROTO_UDPLITE, UDPLITE_SEND_CSCOV, length)`` will change what portion of outgoing packets are cov...
.. versionadded:: 3.8 - :const:`IPPROTO_UDPLITE` is a variant of UDP which allows you to specify what portion of a packet is covered with the checksum. It adds two socket options that you can change. ``self.setsockopt(IPPROTO_UDPLITE, UDPLITE_SEND_CSCOV, length)`` will change what portion of outgoing packets are cov...
python, official-docs, cpython, P0
Local_Trusted_Corpus
5b42ffc5-b420-4fc6-b4dc-b3ef5d535d4f
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,959
supabase-export-v2
3ee12c6f4351ca9f
After binding (:const:`CAN_RAW`) or connecting (:const:`CAN_BCM`) the socket, you can use the :meth:`socket.send` and :meth:`socket.recv` operations (and their counterparts) on the socket object as usual. This last example might require special privileges::
trusted_official_docs
CPython Docs
After binding (:const:`CAN_RAW`) or connecting (:const:`CAN_BCM`) the socket, you can use the :meth:`socket.send` and :meth:`socket.recv` operations (and their counterparts) on the socket object as usual. This last example might require special privileges::
After binding (:const:`CAN_RAW`) or connecting (:const:`CAN_BCM`) the socket, you can use the :meth:`socket.send` and :meth:`socket.recv` operations (and their counterparts) on the socket object as usual. This last example might require special privileges::
python, official-docs, cpython, P0
Local_Trusted_Corpus
5bbf4156-185c-4094-a41a-668497a4ab07
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,804
supabase-export-v2
b83b738acc4cacd2
Return the socket's file descriptor (a small integer), or -1 on failure. This is useful with :func:`select.select`. Under Windows the small integer returned by this method cannot be used where a file descriptor can be used (such as :func:`os.fdopen`). Unix does not have this limitation.
trusted_official_docs
CPython Docs
Return the socket's file descriptor (a small integer), or -1 on failure. This is useful with :func:`select.select`. Under Windows the small integer returned by this method cannot be used where a file descriptor can be used (such as :func:`os.fdopen`). Unix does not have this limitation.
Return the socket's file descriptor (a small integer), or -1 on failure. This is useful with :func:`select.select`. Under Windows the small integer returned by this method cannot be used where a file descriptor can be used (such as :func:`os.fdopen`). Unix does not have this limitation.
python, official-docs, cpython, P0
Local_Trusted_Corpus
5c0c6fed-1123-42c6-b4f8-90ecf1fd6015
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,607
supabase-export-v2
3247b7c11a543701
Convenience function which creates a TCP socket bound to *address* (a 2-tuple ``(host, port)``) and returns the socket object. *family* should be either :data:`AF_INET` or :data:`AF_INET6`. *backlog* is the queue size passed to :meth:`socket.listen`; if not specified , a default reasonable value is chosen. *reuse_port...
trusted_official_docs
CPython Docs
Convenience function which creates a TCP socket bound to *address* (a 2-tuple ``(host, port)``) and returns the socket object. *family* should be either :data:`AF_INET` or :data:`AF_INET6`. *backlog* is the queue size passed to :meth:`socket.listen`; if not specified , a default reasonable value is chosen. *reuse_port...
Convenience function which creates a TCP socket bound to *address* (a 2-tuple ``(host, port)``) and returns the socket object. *family* should be either :data:`AF_INET` or :data:`AF_INET6`. *backlog* is the queue size passed to :meth:`socket.listen`; if not specified , a default reasonable value is chosen. *reuse_port...
python, official-docs, cpython, P0
Local_Trusted_Corpus
5ccb0a7b-09c8-4944-9190-49fb464264d3
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,702
supabase-export-v2
a37ba797458b6395
.. function:: inet_ntoa(packed_ip) Convert a 32-bit packed IPv4 address (a :term:`bytes-like object` four bytes in length) to its standard dotted-quad string representation (for example, '123.45.67.89'). This is useful when conversing with a program that uses the standard C library and needs objects of type :c:struc...
trusted_official_docs
CPython Docs
.. function:: inet_ntoa(packed_ip) Convert a 32-bit packed IPv4 address (a :term:`bytes-like object` four bytes in length) to its standard dotted-quad string representation (for example, '123.45.67.89'). This is useful when conversing with a program that uses the standard C library and needs objects of type :c:struc...
.. function:: inet_ntoa(packed_ip) Convert a 32-bit packed IPv4 address (a :term:`bytes-like object` four bytes in length) to its standard dotted-quad string representation (for example, '123.45.67.89'). This is useful when conversing with a program that uses the standard C library and needs objects of type :c:struc...
python, official-docs, cpython, P0
Local_Trusted_Corpus
5e1a02b1-e8af-46d7-b680-93dd8ac0c3ae
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,580
supabase-export-v2
790b57dbc5fc9b89
the actual OS resource. Unlike :func:`socket.fromfd`, *fileno* will return the same socket and not a duplicate. This may help close a detached socket using :meth:`socket.close`. The newly created socket is :ref:`non-inheritable <fd_inheritance>`.
trusted_official_docs
CPython Docs
the actual OS resource. Unlike :func:`socket.fromfd`, *fileno* will return the same socket and not a duplicate. This may help close a detached socket using :meth:`socket.close`. The newly created socket is :ref:`non-inheritable <fd_inheritance>`.
the actual OS resource. Unlike :func:`socket.fromfd`, *fileno* will return the same socket and not a duplicate. This may help close a detached socket using :meth:`socket.close`. The newly created socket is :ref:`non-inheritable <fd_inheritance>`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
60d5c044-6ccd-425d-8935-fcd5c86c2ab3
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,634
supabase-export-v2
923ef42530c21ef6
how results are computed and returned. For example, :const:`AI_NUMERICHOST` will disable domain name resolution and will raise an error if *host* is a domain name. The function returns a list of 5-tuples with the following structure:
trusted_official_docs
CPython Docs
how results are computed and returned. For example, :const:`AI_NUMERICHOST` will disable domain name resolution and will raise an error if *host* is a domain name. The function returns a list of 5-tuples with the following structure:
how results are computed and returned. For example, :const:`AI_NUMERICHOST` will disable domain name resolution and will raise an error if *host* is a domain name. The function returns a list of 5-tuples with the following structure:
python, official-docs, cpython, P0
Local_Trusted_Corpus
61db4f47-ffbd-4bf2-94d0-405e3affc677
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,480
supabase-export-v2
8af0f32daf25283d
the CAN protocol family, is the broadcast manager (BCM) protocol. Broadcast manager constants, documented in the Linux documentation, are also defined in the socket module. .. availability:: Linux >= 2.6.25.
trusted_official_docs
CPython Docs
the CAN protocol family, is the broadcast manager (BCM) protocol. Broadcast manager constants, documented in the Linux documentation, are also defined in the socket module. .. availability:: Linux >= 2.6.25.
the CAN protocol family, is the broadcast manager (BCM) protocol. Broadcast manager constants, documented in the Linux documentation, are also defined in the socket module. .. availability:: Linux >= 2.6.25.
python, official-docs, cpython, P0
Local_Trusted_Corpus
62be1a47-329b-4ae7-b15c-399d102f0de0
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,834
supabase-export-v2
34e818d17d8355e2
the same way as by the built-in :func:`open` function, except the only supported *mode* values are ``'r'`` (default), ``'w'``, ``'b'``, or a combination of those. The socket must be in blocking mode; it can have a timeout, but the file object's internal buffer may end up in an inconsistent state if a timeout occurs.
trusted_official_docs
CPython Docs
the same way as by the built-in :func:`open` function, except the only supported *mode* values are ``'r'`` (default), ``'w'``, ``'b'``, or a combination of those. The socket must be in blocking mode; it can have a timeout, but the file object's internal buffer may end up in an inconsistent state if a timeout occurs.
the same way as by the built-in :func:`open` function, except the only supported *mode* values are ``'r'`` (default), ``'w'``, ``'b'``, or a combination of those. The socket must be in blocking mode; it can have a timeout, but the file object's internal buffer may end up in an inconsistent state if a timeout occurs.
python, official-docs, cpython, P0
Local_Trusted_Corpus
644381cd-fd68-4c39-b5cb-03a17b7ef102
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,672
supabase-export-v2
641d2a11ffbc743c
For IPv6 addresses, ``%scope_id`` is appended to the host part if *sockaddr* contains meaningful *scope_id*. Usually this happens for multicast addresses. For more information about *flags* you can consult :manpage:`getnameinfo(3)`.
trusted_official_docs
CPython Docs
For IPv6 addresses, ``%scope_id`` is appended to the host part if *sockaddr* contains meaningful *scope_id*. Usually this happens for multicast addresses. For more information about *flags* you can consult :manpage:`getnameinfo(3)`.
For IPv6 addresses, ``%scope_id`` is appended to the host part if *sockaddr* contains meaningful *scope_id*. Usually this happens for multicast addresses. For more information about *flags* you can consult :manpage:`getnameinfo(3)`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
64679685-b208-494e-b701-b8c1ee98e006
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,397
supabase-export-v2
a72e8efa90f07d85
.. versionchanged:: 3.14 Added ``channel`` field. ``device_id`` not packed in a tuple is now accepted. - :const:`BTPROTO_SCO` accepts ``bdaddr`` where ``bdaddr`` is the Bluetooth address as a string or a :class:`bytes` object. (ex. ``'12:23:34:45:56:67'`` or ``b'12:23:34:45:56:67'``)
trusted_official_docs
CPython Docs
.. versionchanged:: 3.14 Added ``channel`` field. ``device_id`` not packed in a tuple is now accepted. - :const:`BTPROTO_SCO` accepts ``bdaddr`` where ``bdaddr`` is the Bluetooth address as a string or a :class:`bytes` object. (ex. ``'12:23:34:45:56:67'`` or ``b'12:23:34:45:56:67'``)
.. versionchanged:: 3.14 Added ``channel`` field. ``device_id`` not packed in a tuple is now accepted. - :const:`BTPROTO_SCO` accepts ``bdaddr`` where ``bdaddr`` is the Bluetooth address as a string or a :class:`bytes` object. (ex. ``'12:23:34:45:56:67'`` or ``b'12:23:34:45:56:67'``)
python, official-docs, cpython, P0
Local_Trusted_Corpus
64af5523-265b-4358-b674-55c7b2f68942
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,854
supabase-export-v2
32a81ea92b8872fc
.. versionadded:: 3.3 .. versionchanged:: 3.5 If the system call is interrupted and the signal handler does not raise an exception, the method now retries the system call instead of raising an :exc:`InterruptedError` exception (see :pep:`475` for the rationale).
trusted_official_docs
CPython Docs
.. versionadded:: 3.3 .. versionchanged:: 3.5 If the system call is interrupted and the signal handler does not raise an exception, the method now retries the system call instead of raising an :exc:`InterruptedError` exception (see :pep:`475` for the rationale).
.. versionadded:: 3.3 .. versionchanged:: 3.5 If the system call is interrupted and the signal handler does not raise an exception, the method now retries the system call instead of raising an :exc:`InterruptedError` exception (see :pep:`475` for the rationale).
python, official-docs, cpython, P0
Local_Trusted_Corpus
65e585a8-2e99-47ce-aa51-c78ca86f5a8f
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,410
supabase-export-v2
69d2a1f01f27e287
- :const:`AF_PACKET` is a low-level interface directly to network devices. The addresses are represented by the tuple ``(ifname, proto[, pkttype[, hatype[, addr]]])`` where: - *ifname* - String specifying the device name. - *proto* - The Ethernet protocol number. May be :data:`ETH_P_ALL` to capture all protocols, one ...
trusted_official_docs
CPython Docs
- :const:`AF_PACKET` is a low-level interface directly to network devices. The addresses are represented by the tuple ``(ifname, proto[, pkttype[, hatype[, addr]]])`` where: - *ifname* - String specifying the device name. - *proto* - The Ethernet protocol number. May be :data:`ETH_P_ALL` to capture all protocols, one ...
- :const:`AF_PACKET` is a low-level interface directly to network devices. The addresses are represented by the tuple ``(ifname, proto[, pkttype[, hatype[, addr]]])`` where: - *ifname* - String specifying the device name. - *proto* - The Ethernet protocol number. May be :data:`ETH_P_ALL` to capture all protocols, one ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
676b8731-21b9-45f4-a2b6-372c3e7e1149
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,465
supabase-export-v2
11eaaf5253b8eaf6
Added support for ``TCP_KEEPIDLE``, ``TCP_KEEPINTVL`` on Windows platforms when available. .. versionchanged:: 3.10 ``IP_RECVTOS`` was added. Added ``TCP_KEEPALIVE``. On MacOS this constant can be used in the same way that ``TCP_KEEPIDLE`` is used on Linux.
trusted_official_docs
CPython Docs
Added support for ``TCP_KEEPIDLE``, ``TCP_KEEPINTVL`` on Windows platforms when available. .. versionchanged:: 3.10 ``IP_RECVTOS`` was added. Added ``TCP_KEEPALIVE``. On MacOS this constant can be used in the same way that ``TCP_KEEPIDLE`` is used on Linux.
Added support for ``TCP_KEEPIDLE``, ``TCP_KEEPINTVL`` on Windows platforms when available. .. versionchanged:: 3.10 ``IP_RECVTOS`` was added. Added ``TCP_KEEPALIVE``. On MacOS this constant can be used in the same way that ``TCP_KEEPIDLE`` is used on Linux.
python, official-docs, cpython, P0
Local_Trusted_Corpus
679404df-f391-4f3b-8513-f957ab3ce876
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,362
supabase-export-v2
6ad7a90d815dac68
.. index:: pair: object; socket The Python interface is a straightforward transliteration of the Unix system call and library interface for sockets to Python's object-oriented style: the :func:`~socket.socket` function returns a :dfn:`socket object` whose methods implement the various socket system calls. Parameter typ...
trusted_official_docs
CPython Docs
.. index:: pair: object; socket The Python interface is a straightforward transliteration of the Unix system call and library interface for sockets to Python's object-oriented style: the :func:`~socket.socket` function returns a :dfn:`socket object` whose methods implement the various socket system calls. Parameter typ...
.. index:: pair: object; socket The Python interface is a straightforward transliteration of the Unix system call and library interface for sockets to Python's object-oriented style: the :func:`~socket.socket` function returns a :dfn:`socket object` whose methods implement the various socket system calls. Parameter typ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
67e9e8bb-ce92-406a-99a1-4ae8f9195dc4
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,636
supabase-export-v2
af7fe2c6bf437976
``(family, type, proto, canonname, sockaddr)`` In these tuples, *family*, *type*, *proto* are all integers and are meant to be passed to the :func:`~socket.socket` function. *canonname* will be a string representing the canonical name of the *host* if :const:`AI_CANONNAME` is part of the *flags* argument; else *cano...
trusted_official_docs
CPython Docs
``(family, type, proto, canonname, sockaddr)`` In these tuples, *family*, *type*, *proto* are all integers and are meant to be passed to the :func:`~socket.socket` function. *canonname* will be a string representing the canonical name of the *host* if :const:`AI_CANONNAME` is part of the *flags* argument; else *cano...
``(family, type, proto, canonname, sockaddr)`` In these tuples, *family*, *type*, *proto* are all integers and are meant to be passed to the :func:`~socket.socket` function. *canonname* will be a string representing the canonical name of the *host* if :const:`AI_CANONNAME` is part of the *flags* argument; else *cano...
python, official-docs, cpython, P0
Local_Trusted_Corpus
6c51b243-3e4d-4785-a5a7-07391a60df34
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,875
supabase-export-v2
d758094ed3137cc2
.. audit-event:: socket.sendto self,address socket.socket.sendto .. versionchanged:: 3.5 If the system call is interrupted and the signal handler does not raise an exception, the method now retries the system call instead of raising an :exc:`InterruptedError` exception (see :pep:`475` for the rationale).
trusted_official_docs
CPython Docs
.. audit-event:: socket.sendto self,address socket.socket.sendto .. versionchanged:: 3.5 If the system call is interrupted and the signal handler does not raise an exception, the method now retries the system call instead of raising an :exc:`InterruptedError` exception (see :pep:`475` for the rationale).
.. audit-event:: socket.sendto self,address socket.socket.sendto .. versionchanged:: 3.5 If the system call is interrupted and the signal handler does not raise an exception, the method now retries the system call instead of raising an :exc:`InterruptedError` exception (see :pep:`475` for the rationale).
python, official-docs, cpython, P0
Local_Trusted_Corpus
6d908ef5-4dc7-4170-9c1b-8b418b7cb01b
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,872
supabase-export-v2
90b22b52bc4f523b
signal handler does not raise an exception, the method now retries the system call instead of raising an :exc:`InterruptedError` exception (see :pep:`475` for the rationale). .. method:: socket.sendto(bytes, address) socket.sendto(bytes, flags, address)
trusted_official_docs
CPython Docs
signal handler does not raise an exception, the method now retries the system call instead of raising an :exc:`InterruptedError` exception (see :pep:`475` for the rationale). .. method:: socket.sendto(bytes, address) socket.sendto(bytes, flags, address)
signal handler does not raise an exception, the method now retries the system call instead of raising an :exc:`InterruptedError` exception (see :pep:`475` for the rationale). .. method:: socket.sendto(bytes, address) socket.sendto(bytes, flags, address)
python, official-docs, cpython, P0
Local_Trusted_Corpus
6fe7efab-bd0e-45c1-8f91-c1a3229e3a6e
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,947
supabase-export-v2
02aca1645cf0df1d
# Echo client program import socket import sys HOST = 'daring.cwi.nl' # The remote host PORT = 50007 # The same port as used by the server s = None for res in socket.getaddrinfo(HOST, PORT, socket.AF_UNSPEC, socket.SOCK_STREAM): af, socktype, proto, canonname, sa = res try: s = socket.socket(af, socktype, proto) ...
trusted_official_docs
CPython Docs
# Echo client program import socket import sys HOST = 'daring.cwi.nl' # The remote host PORT = 50007 # The same port as used by the server s = None for res in socket.getaddrinfo(HOST, PORT, socket.AF_UNSPEC, socket.SOCK_STREAM): af, socktype, proto, canonname, sa = res try: s = socket.socket(af, socktype, proto) ...
# Echo client program import socket import sys HOST = 'daring.cwi.nl' # The remote host PORT = 50007 # The same port as used by the server s = None for res in socket.getaddrinfo(HOST, PORT, socket.AF_UNSPEC, socket.SOCK_STREAM): af, socktype, proto, canonname, sa = res try: s = socket.socket(af, socktype, proto) ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
70e3404f-90e0-4da6-b633-3d1afc1d9f0a
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,369
supabase-export-v2
29bbceadd901a557
Depending on the system and the build options, various socket families are supported by this module. The address format required by a particular socket object is automatically selected based on the address family specified when the socket object was created. Socket addresses are represented as follows:
trusted_official_docs
CPython Docs
Depending on the system and the build options, various socket families are supported by this module. The address format required by a particular socket object is automatically selected based on the address family specified when the socket object was created. Socket addresses are represented as follows:
Depending on the system and the build options, various socket families are supported by this module. The address format required by a particular socket object is automatically selected based on the address family specified when the socket object was created. Socket addresses are represented as follows:
python, official-docs, cpython, P0
Local_Trusted_Corpus
76a30ac5-d7a5-44d1-9351-a7b0b824b0e3
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,380
supabase-export-v2
36c225db394d0225
are represented by a tuple, and the fields depend on the address type. The general tuple form is ``(addr_type, v1, v2, v3 [, scope])``, where: - *addr_type* is one of :const:`TIPC_ADDR_NAMESEQ`, :const:`TIPC_ADDR_NAME`, or :const:`TIPC_ADDR_ID`. - *scope* is one of :const:`TIPC_ZONE_SCOPE`, :const:`TIPC_CLUSTER_SCOPE`...
trusted_official_docs
CPython Docs
are represented by a tuple, and the fields depend on the address type. The general tuple form is ``(addr_type, v1, v2, v3 [, scope])``, where: - *addr_type* is one of :const:`TIPC_ADDR_NAMESEQ`, :const:`TIPC_ADDR_NAME`, or :const:`TIPC_ADDR_ID`. - *scope* is one of :const:`TIPC_ZONE_SCOPE`, :const:`TIPC_CLUSTER_SCOPE`...
are represented by a tuple, and the fields depend on the address type. The general tuple form is ``(addr_type, v1, v2, v3 [, scope])``, where: - *addr_type* is one of :const:`TIPC_ADDR_NAMESEQ`, :const:`TIPC_ADDR_NAME`, or :const:`TIPC_ADDR_ID`. - *scope* is one of :const:`TIPC_ZONE_SCOPE`, :const:`TIPC_CLUSTER_SCOPE`...
python, official-docs, cpython, P0
Local_Trusted_Corpus
76c2998e-b276-4055-b882-2f01d025f2de
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,538
supabase-export-v2
6e15a1b34109ef94
Used in the level argument to the :meth:`~socket.setsockopt` and :meth:`~socket.getsockopt` methods of Bluetooth socket objects. :const:`SOL_BLUETOOTH` is only available on Linux. Other constants are available if the corresponding protocol is supported.
trusted_official_docs
CPython Docs
Used in the level argument to the :meth:`~socket.setsockopt` and :meth:`~socket.getsockopt` methods of Bluetooth socket objects. :const:`SOL_BLUETOOTH` is only available on Linux. Other constants are available if the corresponding protocol is supported.
Used in the level argument to the :meth:`~socket.setsockopt` and :meth:`~socket.getsockopt` methods of Bluetooth socket objects. :const:`SOL_BLUETOOTH` is only available on Linux. Other constants are available if the corresponding protocol is supported.
python, official-docs, cpython, P0
Local_Trusted_Corpus
7707617f-47b3-4b66-9938-283bce7199a1
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,785
supabase-export-v2
36ff7c9b3d5e3074
.. note:: :meth:`close` releases the resource associated with a connection but does not necessarily close the connection immediately. If you want to close the connection in a timely fashion, call :meth:`shutdown` before :meth:`close`.
trusted_official_docs
CPython Docs
.. note:: :meth:`close` releases the resource associated with a connection but does not necessarily close the connection immediately. If you want to close the connection in a timely fashion, call :meth:`shutdown` before :meth:`close`.
.. note:: :meth:`close` releases the resource associated with a connection but does not necessarily close the connection immediately. If you want to close the connection in a timely fashion, call :meth:`shutdown` before :meth:`close`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
78976ea7-0dc8-42f5-a7ee-5234ea891b34
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,644
supabase-export-v2
fcb6b00d602ae1de
(For example, this was reported on Solaris and AIX configurations.) On these systems, limiting the *type* and/or *proto* helps ensure that this address is usable. .. audit-event:: socket.getaddrinfo host,port,family,type,protocol socket.getaddrinfo
trusted_official_docs
CPython Docs
(For example, this was reported on Solaris and AIX configurations.) On these systems, limiting the *type* and/or *proto* helps ensure that this address is usable. .. audit-event:: socket.getaddrinfo host,port,family,type,protocol socket.getaddrinfo
(For example, this was reported on Solaris and AIX configurations.) On these systems, limiting the *type* and/or *proto* helps ensure that this address is usable. .. audit-event:: socket.getaddrinfo host,port,family,type,protocol socket.getaddrinfo
python, official-docs, cpython, P0
Local_Trusted_Corpus
79858557-9d0f-4b7f-9ac3-481ec087dd39
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,758
supabase-export-v2
0d60c979efa5557e
.. function:: send_fds(sock, buffers, fds[, flags[, address]]) Send the list of file descriptors *fds* over an :const:`AF_UNIX` socket *sock*. The *fds* parameter is a sequence of file descriptors. Consult :meth:`~socket.sendmsg` for the documentation of these parameters.
trusted_official_docs
CPython Docs
.. function:: send_fds(sock, buffers, fds[, flags[, address]]) Send the list of file descriptors *fds* over an :const:`AF_UNIX` socket *sock*. The *fds* parameter is a sequence of file descriptors. Consult :meth:`~socket.sendmsg` for the documentation of these parameters.
.. function:: send_fds(sock, buffers, fds[, flags[, address]]) Send the list of file descriptors *fds* over an :const:`AF_UNIX` socket *sock*. The *fds* parameter is a sequence of file descriptors. Consult :meth:`~socket.sendmsg` for the documentation of these parameters.
python, official-docs, cpython, P0
Local_Trusted_Corpus
79c2b8ed-0eaf-41fe-8088-60cb5f88e1de
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,877
supabase-export-v2
7e54ea711b35c164
.. method:: socket.sendmsg(buffers[, ancdata[, flags[, address]]]) Send normal and ancillary data to the socket, gathering the non-ancillary data from a series of buffers and concatenating it into a single message. The *buffers* argument specifies the non-ancillary data as an iterable of :term:`bytes-like objects <...
trusted_official_docs
CPython Docs
.. method:: socket.sendmsg(buffers[, ancdata[, flags[, address]]]) Send normal and ancillary data to the socket, gathering the non-ancillary data from a series of buffers and concatenating it into a single message. The *buffers* argument specifies the non-ancillary data as an iterable of :term:`bytes-like objects <...
.. method:: socket.sendmsg(buffers[, ancdata[, flags[, address]]]) Send normal and ancillary data to the socket, gathering the non-ancillary data from a series of buffers and concatenating it into a single message. The *buffers* argument specifies the non-ancillary data as an iterable of :term:`bytes-like objects <...
python, official-docs, cpython, P0
Local_Trusted_Corpus
7c19d25a-71c8-45ee-85d9-8fe22cd5fb05
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,703
supabase-export-v2
9ccf92ab6bfceb08
C library and needs objects of type :c:struct:`in_addr`, which is the C type for the 32-bit packed binary data this function takes as an argument. If the byte sequence passed to this function is not exactly 4 bytes in length, :exc:`OSError` will be raised. :func:`inet_ntoa` does not support IPv6, and :func:`inet_ntop...
trusted_official_docs
CPython Docs
C library and needs objects of type :c:struct:`in_addr`, which is the C type for the 32-bit packed binary data this function takes as an argument. If the byte sequence passed to this function is not exactly 4 bytes in length, :exc:`OSError` will be raised. :func:`inet_ntoa` does not support IPv6, and :func:`inet_ntop...
C library and needs objects of type :c:struct:`in_addr`, which is the C type for the 32-bit packed binary data this function takes as an argument. If the byte sequence passed to this function is not exactly 4 bytes in length, :exc:`OSError` will be raised. :func:`inet_ntoa` does not support IPv6, and :func:`inet_ntop...
python, official-docs, cpython, P0
Local_Trusted_Corpus
7c3a1f2f-efe7-4112-8a36-8e073a5128d6
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,654
supabase-export-v2
333d9aa37c558ad5
See :func:`gethostbyname_ex` for a more complete interface. :func:`gethostbyname` does not support IPv6 name resolution, and :func:`getaddrinfo` should be used instead for IPv4/v6 dual stack support. .. audit-event:: socket.gethostbyname hostname socket.gethostbyname
trusted_official_docs
CPython Docs
See :func:`gethostbyname_ex` for a more complete interface. :func:`gethostbyname` does not support IPv6 name resolution, and :func:`getaddrinfo` should be used instead for IPv4/v6 dual stack support. .. audit-event:: socket.gethostbyname hostname socket.gethostbyname
See :func:`gethostbyname_ex` for a more complete interface. :func:`gethostbyname` does not support IPv6 name resolution, and :func:`getaddrinfo` should be used instead for IPv4/v6 dual stack support. .. audit-event:: socket.gethostbyname hostname socket.gethostbyname
python, official-docs, cpython, P0
Local_Trusted_Corpus
7db3c815-6a8b-4490-8aec-c6d5dfbe8d16
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,924
supabase-export-v2
69a80f603b53f451
Notes on socket timeouts ------------------------ A socket object can be in one of three modes: blocking, non-blocking, or timeout. Sockets are by default always created in blocking mode, but this can be changed by calling :func:`setdefaulttimeout`.
trusted_official_docs
CPython Docs
Notes on socket timeouts ------------------------ A socket object can be in one of three modes: blocking, non-blocking, or timeout. Sockets are by default always created in blocking mode, but this can be changed by calling :func:`setdefaulttimeout`.
Notes on socket timeouts ------------------------ A socket object can be in one of three modes: blocking, non-blocking, or timeout. Sockets are by default always created in blocking mode, but this can be changed by calling :func:`setdefaulttimeout`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
7ed699e8-dd11-423a-bf74-fe5a1002491b
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,775
supabase-export-v2
920766e7813aae59
.. versionchanged:: 3.4 The socket is now non-inheritable. .. versionchanged:: 3.5 If the system call is interrupted and the signal handler does not raise an exception, the method now retries the system call instead of raising an :exc:`InterruptedError` exception (see :pep:`475` for the rationale).
trusted_official_docs
CPython Docs
.. versionchanged:: 3.4 The socket is now non-inheritable. .. versionchanged:: 3.5 If the system call is interrupted and the signal handler does not raise an exception, the method now retries the system call instead of raising an :exc:`InterruptedError` exception (see :pep:`475` for the rationale).
.. versionchanged:: 3.4 The socket is now non-inheritable. .. versionchanged:: 3.5 If the system call is interrupted and the signal handler does not raise an exception, the method now retries the system call instead of raising an :exc:`InterruptedError` exception (see :pep:`475` for the rationale).
python, official-docs, cpython, P0
Local_Trusted_Corpus
80443a85-9647-48df-a4b6-1a7dd6e88335
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,545
supabase-export-v2
e6391ad099e54e29
Option names for use with :const:`BTPROTO_HCI`. Availability and format of the option values depend on platform. .. versionchanged:: 3.14 Added :const:`!SO_HCI_EVT_FILTER` and :const:`!SO_HCI_PKT_FILTER` on NetBSD and DragonFly BSD. Added :const:`!HCI_DATA_DIR` on FreeBSD, NetBSD and DragonFly BSD.
trusted_official_docs
CPython Docs
Option names for use with :const:`BTPROTO_HCI`. Availability and format of the option values depend on platform. .. versionchanged:: 3.14 Added :const:`!SO_HCI_EVT_FILTER` and :const:`!SO_HCI_PKT_FILTER` on NetBSD and DragonFly BSD. Added :const:`!HCI_DATA_DIR` on FreeBSD, NetBSD and DragonFly BSD.
Option names for use with :const:`BTPROTO_HCI`. Availability and format of the option values depend on platform. .. versionchanged:: 3.14 Added :const:`!SO_HCI_EVT_FILTER` and :const:`!SO_HCI_PKT_FILTER` on NetBSD and DragonFly BSD. Added :const:`!HCI_DATA_DIR` on FreeBSD, NetBSD and DragonFly BSD.
python, official-docs, cpython, P0
Local_Trusted_Corpus
8157661b-3a45-4d40-810f-80ba809c9041
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,837
supabase-export-v2
f287ba8464112921
.. note:: On Windows, the file-like object created by :meth:`makefile` cannot be used where a file object with a file descriptor is expected, such as the stream arguments of :meth:`subprocess.Popen`.
trusted_official_docs
CPython Docs
.. note:: On Windows, the file-like object created by :meth:`makefile` cannot be used where a file object with a file descriptor is expected, such as the stream arguments of :meth:`subprocess.Popen`.
.. note:: On Windows, the file-like object created by :meth:`makefile` cannot be used where a file object with a file descriptor is expected, such as the stream arguments of :meth:`subprocess.Popen`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
816042a0-c2d9-4c74-a218-075fa05e6aa2
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,631
supabase-export-v2
a9de6e3079824f96
This function wraps the C function ``getaddrinfo`` of the underlying system. Translate the *host*/*port* argument into a sequence of 5-tuples that contain all the necessary arguments for creating a socket connected to that service. *host* is a domain name, a string representation of an IPv4/v6 address or ``None``. *p...
trusted_official_docs
CPython Docs
This function wraps the C function ``getaddrinfo`` of the underlying system. Translate the *host*/*port* argument into a sequence of 5-tuples that contain all the necessary arguments for creating a socket connected to that service. *host* is a domain name, a string representation of an IPv4/v6 address or ``None``. *p...
This function wraps the C function ``getaddrinfo`` of the underlying system. Translate the *host*/*port* argument into a sequence of 5-tuples that contain all the necessary arguments for creating a socket connected to that service. *host* is a domain name, a string representation of an IPv4/v6 address or ``None``. *p...
python, official-docs, cpython, P0
Local_Trusted_Corpus
82c1038e-9f72-4b0a-94c9-43503107b1d5
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,729
supabase-export-v2
6d04023a8916a9e4
.. function:: setdefaulttimeout(timeout) Set the default timeout in seconds (real number) for new socket objects. When the socket module is first imported, the default is ``None``. See :meth:`~socket.settimeout` for possible values and their respective meanings.
trusted_official_docs
CPython Docs
.. function:: setdefaulttimeout(timeout) Set the default timeout in seconds (real number) for new socket objects. When the socket module is first imported, the default is ``None``. See :meth:`~socket.settimeout` for possible values and their respective meanings.
.. function:: setdefaulttimeout(timeout) Set the default timeout in seconds (real number) for new socket objects. When the socket module is first imported, the default is ``None``. See :meth:`~socket.settimeout` for possible values and their respective meanings.
python, official-docs, cpython, P0
Local_Trusted_Corpus
8351a518-e430-4aee-b86a-e67abc90d42a
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,857
supabase-export-v2
71dda15e82979bda
limit (:func:`~os.sysconf` value ``SC_IOV_MAX``) on the number of buffers that can be used. The *ancbufsize* and *flags* arguments have the same meaning as for :meth:`recvmsg`. The return value is a 4-tuple: ``(nbytes, ancdata, msg_flags, address)``, where *nbytes* is the total number of bytes of non-ancillary data w...
trusted_official_docs
CPython Docs
limit (:func:`~os.sysconf` value ``SC_IOV_MAX``) on the number of buffers that can be used. The *ancbufsize* and *flags* arguments have the same meaning as for :meth:`recvmsg`. The return value is a 4-tuple: ``(nbytes, ancdata, msg_flags, address)``, where *nbytes* is the total number of bytes of non-ancillary data w...
limit (:func:`~os.sysconf` value ``SC_IOV_MAX``) on the number of buffers that can be used. The *ancbufsize* and *flags* arguments have the same meaning as for :meth:`recvmsg`. The return value is a 4-tuple: ``(nbytes, ancdata, msg_flags, address)``, where *nbytes* is the total number of bytes of non-ancillary data w...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8545ea07-6f96-4f93-a176-3591a4938b62
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,918
supabase-export-v2
8fb6489661ed0b2a
.. method:: socket.share(process_id) Duplicate a socket and prepare it for sharing with a target process. The target process must be provided with *process_id*. The resulting bytes object can then be passed to the target process using some form of interprocess communication and the socket can be recreated there usin...
trusted_official_docs
CPython Docs
.. method:: socket.share(process_id) Duplicate a socket and prepare it for sharing with a target process. The target process must be provided with *process_id*. The resulting bytes object can then be passed to the target process using some form of interprocess communication and the socket can be recreated there usin...
.. method:: socket.share(process_id) Duplicate a socket and prepare it for sharing with a target process. The target process must be provided with *process_id*. The resulting bytes object can then be passed to the target process using some form of interprocess communication and the socket can be recreated there usin...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8611cc99-5dc3-40e0-9569-5f092ac24db6
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,719
supabase-export-v2
49915e8098c5143e
space for padding, even when the item will be the last in the buffer. Raises :exc:`OverflowError` if *length* is outside the permissible range of values. .. availability:: Unix, not WASI.
trusted_official_docs
CPython Docs
space for padding, even when the item will be the last in the buffer. Raises :exc:`OverflowError` if *length* is outside the permissible range of values. .. availability:: Unix, not WASI.
space for padding, even when the item will be the last in the buffer. Raises :exc:`OverflowError` if *length* is outside the permissible range of values. .. availability:: Unix, not WASI.
python, official-docs, cpython, P0
Local_Trusted_Corpus
863db911-76e2-46c1-9a0b-ab841b93e8d5
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,376
supabase-export-v2
063929f54f7999b6
:const:`INADDR_BROADCAST`. This behavior is not compatible with IPv6, therefore, you may want to avoid these if you intend to support IPv6 with your Python programs. - For :const:`AF_INET6` address family, a four-tuple ``(host, port, flowinfo, scope_id)`` is used, where *flowinfo* and *scope_id* represent the ``sin6_f...
trusted_official_docs
CPython Docs
:const:`INADDR_BROADCAST`. This behavior is not compatible with IPv6, therefore, you may want to avoid these if you intend to support IPv6 with your Python programs. - For :const:`AF_INET6` address family, a four-tuple ``(host, port, flowinfo, scope_id)`` is used, where *flowinfo* and *scope_id* represent the ``sin6_f...
:const:`INADDR_BROADCAST`. This behavior is not compatible with IPv6, therefore, you may want to avoid these if you intend to support IPv6 with your Python programs. - For :const:`AF_INET6` address family, a four-tuple ``(host, port, flowinfo, scope_id)`` is used, where *flowinfo* and *scope_id* represent the ``sin6_f...
python, official-docs, cpython, P0
Local_Trusted_Corpus
86b13057-4c70-4bcc-b328-1e3a7f147667
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,666
supabase-export-v2
3173db08871c172d
.. function:: gethostbyaddr(ip_address) Return a 3-tuple ``(hostname, aliaslist, ipaddrlist)`` where *hostname* is the primary host name responding to the given *ip_address*, *aliaslist* is a (possibly empty) list of alternative host names for the same address, and *ipaddrlist* is a list of IPv4/v6 addresses for the...
trusted_official_docs
CPython Docs
.. function:: gethostbyaddr(ip_address) Return a 3-tuple ``(hostname, aliaslist, ipaddrlist)`` where *hostname* is the primary host name responding to the given *ip_address*, *aliaslist* is a (possibly empty) list of alternative host names for the same address, and *ipaddrlist* is a list of IPv4/v6 addresses for the...
.. function:: gethostbyaddr(ip_address) Return a 3-tuple ``(hostname, aliaslist, ipaddrlist)`` where *hostname* is the primary host name responding to the given *ip_address*, *aliaslist* is a (possibly empty) list of alternative host names for the same address, and *ipaddrlist* is a list of IPv4/v6 addresses for the...
python, official-docs, cpython, P0
Local_Trusted_Corpus
87143bc2-201d-49ea-94e8-85a7c4d403af
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,611
supabase-export-v2
ecea8a909fd73e9f
addr = ("", 8080) # all interfaces, port 8080 if socket.has_dualstack_ipv6(): s = socket.create_server(addr, family=socket.AF_INET6, dualstack_ipv6=True) else: s = socket.create_server(addr) .. note:: On POSIX platforms the :data:`SO_REUSEADDR` socket option is set in order to immediately reuse previous sockets which...
trusted_official_docs
CPython Docs
addr = ("", 8080) # all interfaces, port 8080 if socket.has_dualstack_ipv6(): s = socket.create_server(addr, family=socket.AF_INET6, dualstack_ipv6=True) else: s = socket.create_server(addr) .. note:: On POSIX platforms the :data:`SO_REUSEADDR` socket option is set in order to immediately reuse previous sockets which...
addr = ("", 8080) # all interfaces, port 8080 if socket.has_dualstack_ipv6(): s = socket.create_server(addr, family=socket.AF_INET6, dualstack_ipv6=True) else: s = socket.create_server(addr) .. note:: On POSIX platforms the :data:`SO_REUSEADDR` socket option is set in order to immediately reuse previous sockets which...
python, official-docs, cpython, P0
Local_Trusted_Corpus
894c6a70-81bf-4726-aa37-ac2050774659
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,603
supabase-export-v2
048a64027a7beab8
it is the exception from the last address in the list. If *all_errors* is ``True``, it is an :exc:`ExceptionGroup` containing the errors of all attempts. .. versionchanged:: 3.2 *source_address* was added.
trusted_official_docs
CPython Docs
it is the exception from the last address in the list. If *all_errors* is ``True``, it is an :exc:`ExceptionGroup` containing the errors of all attempts. .. versionchanged:: 3.2 *source_address* was added.
it is the exception from the last address in the list. If *all_errors* is ``True``, it is an :exc:`ExceptionGroup` containing the errors of all attempts. .. versionchanged:: 3.2 *source_address* was added.
python, official-docs, cpython, P0
Local_Trusted_Corpus
89568ef3-53cd-4e90-b5e3-a33f9e303233
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,645
supabase-export-v2
362048c30b137cc3
.. audit-event:: socket.getaddrinfo host,port,family,type,protocol socket.getaddrinfo The following example fetches address information for a hypothetical TCP connection to ``example.org`` on port 80 (results may differ on your system if IPv6 isn't enabled)::
trusted_official_docs
CPython Docs
.. audit-event:: socket.getaddrinfo host,port,family,type,protocol socket.getaddrinfo The following example fetches address information for a hypothetical TCP connection to ``example.org`` on port 80 (results may differ on your system if IPv6 isn't enabled)::
.. audit-event:: socket.getaddrinfo host,port,family,type,protocol socket.getaddrinfo The following example fetches address information for a hypothetical TCP connection to ``example.org`` on port 80 (results may differ on your system if IPv6 isn't enabled)::
python, official-docs, cpython, P0
Local_Trusted_Corpus
89860a1d-27c9-4c40-b773-80e258d712df
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,980
supabase-export-v2
687150f464e0815f
- *An Advanced 4.3BSD Interprocess Communication Tutorial*, by Samuel J. Leffler et al, both in the UNIX Programmer's Manual, Supplementary Documents 1 (sections PS1:7 and PS1:8). The platform-specific reference material for the various socket-related system calls are also a valuable source of information on the det...
trusted_official_docs
CPython Docs
- *An Advanced 4.3BSD Interprocess Communication Tutorial*, by Samuel J. Leffler et al, both in the UNIX Programmer's Manual, Supplementary Documents 1 (sections PS1:7 and PS1:8). The platform-specific reference material for the various socket-related system calls are also a valuable source of information on the det...
- *An Advanced 4.3BSD Interprocess Communication Tutorial*, by Samuel J. Leffler et al, both in the UNIX Programmer's Manual, Supplementary Documents 1 (sections PS1:7 and PS1:8). The platform-specific reference material for the various socket-related system calls are also a valuable source of information on the det...
python, official-docs, cpython, P0
Local_Trusted_Corpus
89aa148c-df3c-4ed2-b5e3-fbd048a912d9
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,694
supabase-export-v2
3fbd3d511d2064f0
.. function:: htons(x) Convert 16-bit positive integers from host to network byte order. On machines where the host byte order is the same as network byte order, this is a no-op; otherwise, it performs a 2-byte swap operation.
trusted_official_docs
CPython Docs
.. function:: htons(x) Convert 16-bit positive integers from host to network byte order. On machines where the host byte order is the same as network byte order, this is a no-op; otherwise, it performs a 2-byte swap operation.
.. function:: htons(x) Convert 16-bit positive integers from host to network byte order. On machines where the host byte order is the same as network byte order, this is a no-op; otherwise, it performs a 2-byte swap operation.
python, official-docs, cpython, P0
Local_Trusted_Corpus
8a29c348-57f9-4862-9f33-4d71734f0092
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,839
supabase-export-v2
e0ceb805dd06a4bd
.. method:: socket.recv(bufsize[, flags]) Receive data from the socket. The return value is a bytes object representing the data received. The maximum amount of data to be received at once is specified by *bufsize*. A returned empty bytes object indicates that the client has disconnected. See the Unix manual page :ma...
trusted_official_docs
CPython Docs
.. method:: socket.recv(bufsize[, flags]) Receive data from the socket. The return value is a bytes object representing the data received. The maximum amount of data to be received at once is specified by *bufsize*. A returned empty bytes object indicates that the client has disconnected. See the Unix manual page :ma...
.. method:: socket.recv(bufsize[, flags]) Receive data from the socket. The return value is a bytes object representing the data received. The maximum amount of data to be received at once is specified by *bufsize*. A returned empty bytes object indicates that the client has disconnected. See the Unix manual page :ma...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8a6ed0c7-3b74-4013-afa4-b8ce6eac17fc
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,904
supabase-export-v2
d444b0a7a291b050
.. method:: socket.settimeout(value) Set a timeout on blocking socket operations. The *value* argument can be a nonnegative real number expressing seconds, or ``None``. If a non-zero value is given, subsequent socket operations will raise a :exc:`timeout` exception if the timeout period *value* has elapsed before th...
trusted_official_docs
CPython Docs
.. method:: socket.settimeout(value) Set a timeout on blocking socket operations. The *value* argument can be a nonnegative real number expressing seconds, or ``None``. If a non-zero value is given, subsequent socket operations will raise a :exc:`timeout` exception if the timeout period *value* has elapsed before th...
.. method:: socket.settimeout(value) Set a timeout on blocking socket operations. The *value* argument can be a nonnegative real number expressing seconds, or ``None``. If a non-zero value is given, subsequent socket operations will raise a :exc:`timeout` exception if the timeout period *value* has elapsed before th...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8a8482b9-6cf5-4658-aed8-d9f07d85a8d0
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,374
supabase-export-v2
ff14add0cecd0793
.. _host_port: - A pair ``(host, port)`` is used for the :const:`AF_INET` address family, where *host* is a string representing either a hostname in internet domain notation like ``'daring.cwi.nl'`` or an IPv4 address like ``'100.50.200.5'``, and *port* is an integer.
trusted_official_docs
CPython Docs
.. _host_port: - A pair ``(host, port)`` is used for the :const:`AF_INET` address family, where *host* is a string representing either a hostname in internet domain notation like ``'daring.cwi.nl'`` or an IPv4 address like ``'100.50.200.5'``, and *port* is an integer.
.. _host_port: - A pair ``(host, port)`` is used for the :const:`AF_INET` address family, where *host* is a string representing either a hostname in internet domain notation like ``'daring.cwi.nl'`` or an IPv4 address like ``'100.50.200.5'``, and *port* is an integer.
python, official-docs, cpython, P0
Local_Trusted_Corpus
8b496c7e-8486-4c71-aecb-ef27d0b7d00a
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,763
supabase-export-v2
59de38b5252134f8
.. function:: recv_fds(sock, bufsize, maxfds[, flags]) Receive up to *maxfds* file descriptors from an :const:`AF_UNIX` socket *sock*. Return ``(msg, list(fds), flags, addr)``. Consult :meth:`~socket.recvmsg` for the documentation of these parameters.
trusted_official_docs
CPython Docs
.. function:: recv_fds(sock, bufsize, maxfds[, flags]) Receive up to *maxfds* file descriptors from an :const:`AF_UNIX` socket *sock*. Return ``(msg, list(fds), flags, addr)``. Consult :meth:`~socket.recvmsg` for the documentation of these parameters.
.. function:: recv_fds(sock, bufsize, maxfds[, flags]) Receive up to *maxfds* file descriptors from an :const:`AF_UNIX` socket *sock*. Return ``(msg, list(fds), flags, addr)``. Consult :meth:`~socket.recvmsg` for the documentation of these parameters.
python, official-docs, cpython, P0
Local_Trusted_Corpus
8b78fca6-037b-40b2-a9a0-d4e20f02bad7
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,879
supabase-export-v2
b4eb5383655d101c
is supplied and not ``None``, it sets a destination address for the message. The return value is the number of bytes of non-ancillary data sent. The following function sends the list of file descriptors *fds* over an :const:`AF_UNIX` socket, on systems which support the :const:`SCM_RIGHTS` mechanism. See also :meth:`...
trusted_official_docs
CPython Docs
is supplied and not ``None``, it sets a destination address for the message. The return value is the number of bytes of non-ancillary data sent. The following function sends the list of file descriptors *fds* over an :const:`AF_UNIX` socket, on systems which support the :const:`SCM_RIGHTS` mechanism. See also :meth:`...
is supplied and not ``None``, it sets a destination address for the message. The return value is the number of bytes of non-ancillary data sent. The following function sends the list of file descriptors *fds* over an :const:`AF_UNIX` socket, on systems which support the :const:`SCM_RIGHTS` mechanism. See also :meth:`...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8bb6f592-cbaa-4085-af3c-d033c42b2cc2
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,448
supabase-export-v2
9722a0f7eb63c71c
.. data:: AF_UNIX AF_INET AF_INET6 These constants represent the address (and protocol) families, used for the first argument to :func:`~socket.socket`. If the :const:`AF_UNIX` constant is not defined then this protocol is unsupported. More constants may be available depending on the system.
trusted_official_docs
CPython Docs
.. data:: AF_UNIX AF_INET AF_INET6 These constants represent the address (and protocol) families, used for the first argument to :func:`~socket.socket`. If the :const:`AF_UNIX` constant is not defined then this protocol is unsupported. More constants may be available depending on the system.
.. data:: AF_UNIX AF_INET AF_INET6 These constants represent the address (and protocol) families, used for the first argument to :func:`~socket.socket`. If the :const:`AF_UNIX` constant is not defined then this protocol is unsupported. More constants may be available depending on the system.
python, official-docs, cpython, P0
Local_Trusted_Corpus
8bbcc474-e595-4e3c-80db-b0d3a8bd1e2e
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,942
supabase-export-v2
5d28b2334ec86efa
= 50007 # The same port as used by the server with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s: s.connect((HOST, PORT)) s.sendall(b'Hello, world') data = s.recv(1024) print('Received', repr(data)) The next two examples are identical to the above two, but support both IPv4 and IPv6. The server side will liste...
trusted_official_docs
CPython Docs
= 50007 # The same port as used by the server with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s: s.connect((HOST, PORT)) s.sendall(b'Hello, world') data = s.recv(1024) print('Received', repr(data)) The next two examples are identical to the above two, but support both IPv4 and IPv6. The server side will liste...
= 50007 # The same port as used by the server with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s: s.connect((HOST, PORT)) s.sendall(b'Hello, world') data = s.recv(1024) print('Received', repr(data)) The next two examples are identical to the above two, but support both IPv4 and IPv6. The server side will liste...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8bd03605-bfa3-4133-80df-355645e9b37b
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,383
supabase-export-v2
6e192e9c315406b3
If *addr_type* is :const:`TIPC_ADDR_ID`, then *v1* is the node, *v2* is the reference, and *v3* should be set to 0. - A tuple ``(interface, )`` is used for the :const:`AF_CAN` address family, where *interface* is a string representing a network interface name like ``'can0'``. The network interface name ``''`` can be ...
trusted_official_docs
CPython Docs
If *addr_type* is :const:`TIPC_ADDR_ID`, then *v1* is the node, *v2* is the reference, and *v3* should be set to 0. - A tuple ``(interface, )`` is used for the :const:`AF_CAN` address family, where *interface* is a string representing a network interface name like ``'can0'``. The network interface name ``''`` can be ...
If *addr_type* is :const:`TIPC_ADDR_ID`, then *v1* is the node, *v2* is the reference, and *v3* should be set to 0. - A tuple ``(interface, )`` is used for the :const:`AF_CAN` address family, where *interface* is a string representing a network interface name like ``'can0'``. The network interface name ``''`` can be ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8de417ee-ea7f-4376-9cca-d8a9b5aae6db
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,899
supabase-export-v2
b5f2d1e7eaf6bf4f
Set blocking or non-blocking mode of the socket: if *flag* is false, the socket is set to non-blocking, else to blocking mode. This method is a shorthand for certain :meth:`~socket.settimeout` calls:
trusted_official_docs
CPython Docs
Set blocking or non-blocking mode of the socket: if *flag* is false, the socket is set to non-blocking, else to blocking mode. This method is a shorthand for certain :meth:`~socket.settimeout` calls:
Set blocking or non-blocking mode of the socket: if *flag* is false, the socket is set to non-blocking, else to blocking mode. This method is a shorthand for certain :meth:`~socket.settimeout` calls:
python, official-docs, cpython, P0
Local_Trusted_Corpus
8f105b51-f2e0-45b6-9b40-362a6606d57f
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,700
supabase-export-v2
c28c47659bdbdefa
string passed to this function is invalid, :exc:`OSError` will be raised. Note that exactly what is valid depends on the underlying C implementation of :c:func:`inet_aton`. :func:`inet_aton` does not support IPv6, and :func:`inet_pton` should be used instead for IPv4/v6 dual stack support.
trusted_official_docs
CPython Docs
string passed to this function is invalid, :exc:`OSError` will be raised. Note that exactly what is valid depends on the underlying C implementation of :c:func:`inet_aton`. :func:`inet_aton` does not support IPv6, and :func:`inet_pton` should be used instead for IPv4/v6 dual stack support.
string passed to this function is invalid, :exc:`OSError` will be raised. Note that exactly what is valid depends on the underlying C implementation of :c:func:`inet_aton`. :func:`inet_aton` does not support IPv6, and :func:`inet_pton` should be used instead for IPv4/v6 dual stack support.
python, official-docs, cpython, P0
Local_Trusted_Corpus
8f3a01bd-597b-4e51-b6f0-c8551c31d60f
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,862
supabase-export-v2
5759be8aad88a176
.. method:: socket.recvfrom_into(buffer[, nbytes[, flags]]) Receive data from the socket, writing it into *buffer* instead of creating a new bytestring. The return value is a pair ``(nbytes, address)`` where *nbytes* is the number of bytes received and *address* is the address of the socket sending the data. See the...
trusted_official_docs
CPython Docs
.. method:: socket.recvfrom_into(buffer[, nbytes[, flags]]) Receive data from the socket, writing it into *buffer* instead of creating a new bytestring. The return value is a pair ``(nbytes, address)`` where *nbytes* is the number of bytes received and *address* is the address of the socket sending the data. See the...
.. method:: socket.recvfrom_into(buffer[, nbytes[, flags]]) Receive data from the socket, writing it into *buffer* instead of creating a new bytestring. The return value is a pair ``(nbytes, address)`` where *nbytes* is the number of bytes received and *address* is the address of the socket sending the data. See the...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8f6f18d2-7f1c-4294-8fc4-2a6591e16886
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,425
supabase-export-v2
b12f4e8dfca5038a
.. versionadded:: 3.12 If you use a hostname in the *host* portion of IPv4/v6 socket address, the program may show a nondeterministic behavior, as Python uses the first address returned from the DNS resolution. The socket address will be resolved differently into an actual IPv4/v6 address, depending on the results from...
trusted_official_docs
CPython Docs
.. versionadded:: 3.12 If you use a hostname in the *host* portion of IPv4/v6 socket address, the program may show a nondeterministic behavior, as Python uses the first address returned from the DNS resolution. The socket address will be resolved differently into an actual IPv4/v6 address, depending on the results from...
.. versionadded:: 3.12 If you use a hostname in the *host* portion of IPv4/v6 socket address, the program may show a nondeterministic behavior, as Python uses the first address returned from the DNS resolution. The socket address will be resolved differently into an actual IPv4/v6 address, depending on the results from...
python, official-docs, cpython, P0
Local_Trusted_Corpus
95eb4762-5946-4a72-ace0-162670925276
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,782
supabase-export-v2
f3a9e128a9695f15
Once that happens, all future operations on the socket object will fail. The remote end will receive no more data (after queued data is flushed). Sockets are automatically closed when they are garbage-collected, but it is recommended to :meth:`close` them explicitly, or to use a :keyword:`with` statement around them.
trusted_official_docs
CPython Docs
Once that happens, all future operations on the socket object will fail. The remote end will receive no more data (after queued data is flushed). Sockets are automatically closed when they are garbage-collected, but it is recommended to :meth:`close` them explicitly, or to use a :keyword:`with` statement around them.
Once that happens, all future operations on the socket object will fail. The remote end will receive no more data (after queued data is flushed). Sockets are automatically closed when they are garbage-collected, but it is recommended to :meth:`close` them explicitly, or to use a :keyword:`with` statement around them.
python, official-docs, cpython, P0
Local_Trusted_Corpus
9889e3b5-617f-4401-8cc4-c53ef4183521
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,892
supabase-export-v2
c8560297b78016ce
.. method:: socket.sendfile(file, offset=0, count=None) Send a file until EOF is reached by using high-performance :mod:`os.sendfile` and return the total number of bytes which were sent. *file* must be a regular file object opened in binary mode. If :mod:`os.sendfile` is not available (e.g. Windows) or *file* is not...
trusted_official_docs
CPython Docs
.. method:: socket.sendfile(file, offset=0, count=None) Send a file until EOF is reached by using high-performance :mod:`os.sendfile` and return the total number of bytes which were sent. *file* must be a regular file object opened in binary mode. If :mod:`os.sendfile` is not available (e.g. Windows) or *file* is not...
.. method:: socket.sendfile(file, offset=0, count=None) Send a file until EOF is reached by using high-performance :mod:`os.sendfile` and return the total number of bytes which were sent. *file* must be a regular file object opened in binary mode. If :mod:`os.sendfile` is not available (e.g. Windows) or *file* is not...
python, official-docs, cpython, P0
Local_Trusted_Corpus
99a6e507-f2d7-4034-9548-918c710e2d7f
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,422
supabase-export-v2
893bf2d3087445e7
machine identifier or a set of known VMID values if the target is not a specific virtual machine. Known VMID constants defined on ``socket`` are: - ``HV_GUID_ZERO`` - ``HV_GUID_BROADCAST`` - ``HV_GUID_WILDCARD`` - Used to bind on itself and accept connections from all partitions. - ``HV_GUID_CHILDREN`` - Used to bin...
trusted_official_docs
CPython Docs
machine identifier or a set of known VMID values if the target is not a specific virtual machine. Known VMID constants defined on ``socket`` are: - ``HV_GUID_ZERO`` - ``HV_GUID_BROADCAST`` - ``HV_GUID_WILDCARD`` - Used to bind on itself and accept connections from all partitions. - ``HV_GUID_CHILDREN`` - Used to bin...
machine identifier or a set of known VMID values if the target is not a specific virtual machine. Known VMID constants defined on ``socket`` are: - ``HV_GUID_ZERO`` - ``HV_GUID_BROADCAST`` - ``HV_GUID_WILDCARD`` - Used to bind on itself and accept connections from all partitions. - ``HV_GUID_CHILDREN`` - Used to bin...
python, official-docs, cpython, P0
Local_Trusted_Corpus
9a2e8f6c-d3ff-4c8e-a590-c6343e94dba8
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,849
supabase-export-v2
88f0a425c643549c
:c:expr:`int` type. If :meth:`recvmsg` raises an exception after the system call returns, it will first attempt to close any file descriptors received via this mechanism. Some systems do not indicate the truncated length of ancillary data items which have been only partially received. If an item appears to extend bey...
trusted_official_docs
CPython Docs
:c:expr:`int` type. If :meth:`recvmsg` raises an exception after the system call returns, it will first attempt to close any file descriptors received via this mechanism. Some systems do not indicate the truncated length of ancillary data items which have been only partially received. If an item appears to extend bey...
:c:expr:`int` type. If :meth:`recvmsg` raises an exception after the system call returns, it will first attempt to close any file descriptors received via this mechanism. Some systems do not indicate the truncated length of ancillary data items which have been only partially received. If an item appears to extend bey...
python, official-docs, cpython, P0
Local_Trusted_Corpus
9f2674ac-66c3-4e66-931c-d3375f2024ee
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,467
supabase-export-v2
3f819327a33388c4
.. versionchanged:: 3.11 Added ``TCP_CONNECTION_INFO``. On MacOS this constant can be used in the same way that ``TCP_INFO`` is used on Linux and BSD. .. versionchanged:: 3.12 Added ``SO_RTABLE`` and ``SO_USER_COOKIE``. On OpenBSD and FreeBSD respectively those constants can be used in the same way that ``SO_MARK`` ...
trusted_official_docs
CPython Docs
.. versionchanged:: 3.11 Added ``TCP_CONNECTION_INFO``. On MacOS this constant can be used in the same way that ``TCP_INFO`` is used on Linux and BSD. .. versionchanged:: 3.12 Added ``SO_RTABLE`` and ``SO_USER_COOKIE``. On OpenBSD and FreeBSD respectively those constants can be used in the same way that ``SO_MARK`` ...
.. versionchanged:: 3.11 Added ``TCP_CONNECTION_INFO``. On MacOS this constant can be used in the same way that ``TCP_INFO`` is used on Linux and BSD. .. versionchanged:: 3.12 Added ``SO_RTABLE`` and ``SO_USER_COOKIE``. On OpenBSD and FreeBSD respectively those constants can be used in the same way that ``SO_MARK`` ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
9fc03524-efe8-440b-8083-2bb234e04aa3
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,905
supabase-export-v2
b5a61f690cacc556
operation has completed. If zero is given, the socket is put in non-blocking mode. If ``None`` is given, the socket is put in blocking mode. For further information, please consult the :ref:`notes on socket timeouts <socket-timeouts>`.
trusted_official_docs
CPython Docs
operation has completed. If zero is given, the socket is put in non-blocking mode. If ``None`` is given, the socket is put in blocking mode. For further information, please consult the :ref:`notes on socket timeouts <socket-timeouts>`.
operation has completed. If zero is given, the socket is put in non-blocking mode. If ``None`` is given, the socket is put in blocking mode. For further information, please consult the :ref:`notes on socket timeouts <socket-timeouts>`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
a04eeb61-9282-4b66-a230-afc89a91b918
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,873
supabase-export-v2
c5355447729e8f1d
.. method:: socket.sendto(bytes, address) socket.sendto(bytes, flags, address) Send data to the socket. The socket should not be connected to a remote socket, since the destination socket is specified by *address*. The optional *flags* argument has the same meaning as for :meth:`recv`. Return the number of bytes sen...
trusted_official_docs
CPython Docs
.. method:: socket.sendto(bytes, address) socket.sendto(bytes, flags, address) Send data to the socket. The socket should not be connected to a remote socket, since the destination socket is specified by *address*. The optional *flags* argument has the same meaning as for :meth:`recv`. Return the number of bytes sen...
.. method:: socket.sendto(bytes, address) socket.sendto(bytes, flags, address) Send data to the socket. The socket should not be connected to a remote socket, since the destination socket is specified by *address*. The optional *flags* argument has the same meaning as for :meth:`recv`. Return the number of bytes sen...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a3d4ec38-5b24-437d-8fc0-560da08744be
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,676
supabase-export-v2
e55bf1526331edf1
.. function:: getprotobyname(protocolname) Translate an internet protocol name (for example, ``'icmp'``) to a constant suitable for passing as the (optional) third argument to the :func:`~socket.socket` function. This is usually only needed for sockets opened in "raw" mode (:const:`SOCK_RAW`); for the normal socket ...
trusted_official_docs
CPython Docs
.. function:: getprotobyname(protocolname) Translate an internet protocol name (for example, ``'icmp'``) to a constant suitable for passing as the (optional) third argument to the :func:`~socket.socket` function. This is usually only needed for sockets opened in "raw" mode (:const:`SOCK_RAW`); for the normal socket ...
.. function:: getprotobyname(protocolname) Translate an internet protocol name (for example, ``'icmp'``) to a constant suitable for passing as the (optional) third argument to the :func:`~socket.socket` function. This is usually only needed for sockets opened in "raw" mode (:const:`SOCK_RAW`); for the normal socket ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a8116b56-122c-4629-ae2a-612cae94c75f
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,407
supabase-export-v2
78809b3cc03ed59b
between virtual machines and their hosts. The sockets are represented as a ``(CID, port)`` tuple where the context ID or CID and port are integers. .. availability:: Linux >= 3.9
trusted_official_docs
CPython Docs
between virtual machines and their hosts. The sockets are represented as a ``(CID, port)`` tuple where the context ID or CID and port are integers. .. availability:: Linux >= 3.9
between virtual machines and their hosts. The sockets are represented as a ``(CID, port)`` tuple where the context ID or CID and port are integers. .. availability:: Linux >= 3.9
python, official-docs, cpython, P0
Local_Trusted_Corpus
a8aac55f-b7a5-4880-bd8e-1db1e427794b
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,442
supabase-export-v2
78b67e760d7922e0
timeouts enabled via a prior call to :meth:`~socket.settimeout` (or implicitly through :func:`~socket.setdefaulttimeout`). The accompanying value is a string whose value is currently always "timed out". .. versionchanged:: 3.3 This class was made a subclass of :exc:`OSError`.
trusted_official_docs
CPython Docs
timeouts enabled via a prior call to :meth:`~socket.settimeout` (or implicitly through :func:`~socket.setdefaulttimeout`). The accompanying value is a string whose value is currently always "timed out". .. versionchanged:: 3.3 This class was made a subclass of :exc:`OSError`.
timeouts enabled via a prior call to :meth:`~socket.settimeout` (or implicitly through :func:`~socket.setdefaulttimeout`). The accompanying value is a string whose value is currently always "timed out". .. versionchanged:: 3.3 This class was made a subclass of :exc:`OSError`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
aa373c59-9cbb-42bc-99b2-7d06db061db5
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,370
supabase-export-v2
0ccb529bb9ad6360
a particular socket object is automatically selected based on the address family specified when the socket object was created. Socket addresses are represented as follows: - The address of an :const:`AF_UNIX` socket bound to a file system node is represented as a string, using the file system encoding and the ``'surr...
trusted_official_docs
CPython Docs
a particular socket object is automatically selected based on the address family specified when the socket object was created. Socket addresses are represented as follows: - The address of an :const:`AF_UNIX` socket bound to a file system node is represented as a string, using the file system encoding and the ``'surr...
a particular socket object is automatically selected based on the address family specified when the socket object was created. Socket addresses are represented as follows: - The address of an :const:`AF_UNIX` socket bound to a file system node is represented as a string, using the file system encoding and the ``'surr...
python, official-docs, cpython, P0
Local_Trusted_Corpus
aad47520-1cde-4e2c-82ba-27adbbd9e9ce
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,642
supabase-export-v2
4f66eacff6d4b148
The behavior with default values of *family*, *type*, *proto* and *flags* is system-specific. Many systems (for example, most Linux configurations) will return a sorted list of all matching addresses. These addresses should generally be tried in order until a connection succeeds (possibly tried in parallel, for examp...
trusted_official_docs
CPython Docs
The behavior with default values of *family*, *type*, *proto* and *flags* is system-specific. Many systems (for example, most Linux configurations) will return a sorted list of all matching addresses. These addresses should generally be tried in order until a connection succeeds (possibly tried in parallel, for examp...
The behavior with default values of *family*, *type*, *proto* and *flags* is system-specific. Many systems (for example, most Linux configurations) will return a sorted list of all matching addresses. These addresses should generally be tried in order until a connection succeeds (possibly tried in parallel, for examp...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ab03a12d-6911-4c0f-bf45-9c7113e7c889
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,377
supabase-export-v2
8b6799964b7cad5f
module methods, *flowinfo* and *scope_id* can be omitted just for backward compatibility. Note, however, omission of *scope_id* can cause problems in manipulating scoped IPv6 addresses. .. versionchanged:: 3.7 For multicast addresses (with *scope_id* meaningful) *address* may not contain ``%scope_id`` (or ``zone id``...
trusted_official_docs
CPython Docs
module methods, *flowinfo* and *scope_id* can be omitted just for backward compatibility. Note, however, omission of *scope_id* can cause problems in manipulating scoped IPv6 addresses. .. versionchanged:: 3.7 For multicast addresses (with *scope_id* meaningful) *address* may not contain ``%scope_id`` (or ``zone id``...
module methods, *flowinfo* and *scope_id* can be omitted just for backward compatibility. Note, however, omission of *scope_id* can cause problems in manipulating scoped IPv6 addresses. .. versionchanged:: 3.7 For multicast addresses (with *scope_id* meaningful) *address* may not contain ``%scope_id`` (or ``zone id``...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ac396955-00c1-47f7-b8bd-d40c40921c81
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,698
supabase-export-v2
14799d1a892dcd94
that uses the standard C library and needs objects of type :c:struct:`in_addr`, which is the C type for the 32-bit packed binary this function returns. :func:`inet_aton` also accepts strings with less than three dots; see the Unix manual page :manpage:`inet(3)` for details.
trusted_official_docs
CPython Docs
that uses the standard C library and needs objects of type :c:struct:`in_addr`, which is the C type for the 32-bit packed binary this function returns. :func:`inet_aton` also accepts strings with less than three dots; see the Unix manual page :manpage:`inet(3)` for details.
that uses the standard C library and needs objects of type :c:struct:`in_addr`, which is the C type for the 32-bit packed binary this function returns. :func:`inet_aton` also accepts strings with less than three dots; see the Unix manual page :manpage:`inet(3)` for details.
python, official-docs, cpython, P0
Local_Trusted_Corpus