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
ad34e58e-5996-4c97-86db-8744a6292114
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,855
supabase-export-v2
0729cb5ea22eafed
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.recvmsg_into(buffers[, ancbufsize[, flags]])
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.recvmsg_into(buffers[, ancbufsize[, flags]])
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.recvmsg_into(buffers[, ancbufsize[, flags]])
python, official-docs, cpython, P0
Local_Trusted_Corpus
adca2e34-b3aa-4f7c-8f94-7223384c5cf1
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,811
supabase-export-v2
ddc00376a08bcb97
.. method:: socket.getsockname() Return the socket's own address. This is useful to find out the port number of an IPv4/v6 socket, for instance. The format of the address returned depends on the address family --- see :ref:`socket-addresses`.
trusted_official_docs
CPython Docs
.. method:: socket.getsockname() Return the socket's own address. This is useful to find out the port number of an IPv4/v6 socket, for instance. The format of the address returned depends on the address family --- see :ref:`socket-addresses`.
.. method:: socket.getsockname() Return the socket's own address. This is useful to find out the port number of an IPv4/v6 socket, for instance. The format of the address returned depends on the address family --- see :ref:`socket-addresses`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
ae5ba7c1-d501-4823-9346-f64384baeaaa
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,601
supabase-export-v2
44a3d9b9446a3c83
the timeout on the socket instance before attempting to connect. If no *timeout* is supplied, the global default timeout setting returned by :func:`getdefaulttimeout` is used. If supplied, *source_address* must be a 2-tuple ``(host, port)`` for the socket to bind to as its source address before connecting. If host or ...
trusted_official_docs
CPython Docs
the timeout on the socket instance before attempting to connect. If no *timeout* is supplied, the global default timeout setting returned by :func:`getdefaulttimeout` is used. If supplied, *source_address* must be a 2-tuple ``(host, port)`` for the socket to bind to as its source address before connecting. If host or ...
the timeout on the socket instance before attempting to connect. If no *timeout* is supplied, the global default timeout setting returned by :func:`getdefaulttimeout` is used. If supplied, *source_address* must be a 2-tuple ``(host, port)`` for the socket to bind to as its source address before connecting. If host or ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
af44f6d7-3a75-4f59-a98b-6235570592f4
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,394
supabase-export-v2
6d553357479ece5c
the HCI channel (:const:`HCI_CHANNEL_RAW` by default). - On FreeBSD, NetBSD and DragonFly BSD it accepts ``bdaddr`` where ``bdaddr`` is the Bluetooth address as a string. .. versionchanged:: 3.2 NetBSD and DragonFlyBSD support added.
trusted_official_docs
CPython Docs
the HCI channel (:const:`HCI_CHANNEL_RAW` by default). - On FreeBSD, NetBSD and DragonFly BSD it accepts ``bdaddr`` where ``bdaddr`` is the Bluetooth address as a string. .. versionchanged:: 3.2 NetBSD and DragonFlyBSD support added.
the HCI channel (:const:`HCI_CHANNEL_RAW` by default). - On FreeBSD, NetBSD and DragonFly BSD it accepts ``bdaddr`` where ``bdaddr`` is the Bluetooth address as a string. .. versionchanged:: 3.2 NetBSD and DragonFlyBSD support added.
python, official-docs, cpython, P0
Local_Trusted_Corpus
afe1aa6d-ba89-47b6-845e-0459556668da
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,679
supabase-export-v2
6c8d1baeeb16280e
.. function:: getservbyname(servicename[, protocolname]) Translate an internet service name and protocol name to a port number for that service. The optional protocol name, if given, should be ``'tcp'`` or ``'udp'``, otherwise any protocol will match.
trusted_official_docs
CPython Docs
.. function:: getservbyname(servicename[, protocolname]) Translate an internet service name and protocol name to a port number for that service. The optional protocol name, if given, should be ``'tcp'`` or ``'udp'``, otherwise any protocol will match.
.. function:: getservbyname(servicename[, protocolname]) Translate an internet service name and protocol name to a port number for that service. The optional protocol name, if given, should be ``'tcp'`` or ``'udp'``, otherwise any protocol will match.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b0238b9e-bac9-48a0-b42c-dddbb9e28c1a
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,921
supabase-export-v2
ff0fe79887c4ba3b
Note that there are no methods :meth:`read` or :meth:`write`; use :meth:`~socket.recv` and :meth:`~socket.send` without *flags* argument instead. Socket objects also have these (read-only) attributes that correspond to the values given to the :class:`~socket.socket` constructor.
trusted_official_docs
CPython Docs
Note that there are no methods :meth:`read` or :meth:`write`; use :meth:`~socket.recv` and :meth:`~socket.send` without *flags* argument instead. Socket objects also have these (read-only) attributes that correspond to the values given to the :class:`~socket.socket` constructor.
Note that there are no methods :meth:`read` or :meth:`write`; use :meth:`~socket.recv` and :meth:`~socket.send` without *flags* argument instead. Socket objects also have these (read-only) attributes that correspond to the values given to the :class:`~socket.socket` constructor.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b5aacd54-9302-45a5-87fe-fb4b151916fd
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,724
supabase-export-v2
7e4321be2f1f072a
may not precisely limit the amount of ancillary data that can be received, since additional data may be able to fit into the padding area. .. availability:: Unix, not WASI.
trusted_official_docs
CPython Docs
may not precisely limit the amount of ancillary data that can be received, since additional data may be able to fit into the padding area. .. availability:: Unix, not WASI.
may not precisely limit the amount of ancillary data that can be received, since additional data may be able to fit into the padding area. .. availability:: Unix, not WASI.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b688ef62-a790-4502-8a6c-7eff9233c70f
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,925
supabase-export-v2
3efeb4cf287cfbd2
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`. * In *blocking mode*, operations block until complete or the system returns an error (such as connection timed out).
trusted_official_docs
CPython Docs
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`. * In *blocking mode*, operations block until complete or the system returns an error (such as connection timed out).
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`. * In *blocking mode*, operations block until complete or the system returns an error (such as connection timed out).
python, official-docs, cpython, P0
Local_Trusted_Corpus
b6ef1cef-1de5-4edf-91e7-774252639368
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,744
supabase-export-v2
ff7738693ddbe6d0
* UUID: ``{FB605B73-AAC2-49A6-9A2F-25416AEA0573}`` * name: ``ethernet_32770`` * friendly name: ``vEthernet (nat)`` * description: ``Hyper-V Virtual Ethernet Adapter`` This function returns names of the second form from the list, ``ethernet_32770`` in this example case.
trusted_official_docs
CPython Docs
* UUID: ``{FB605B73-AAC2-49A6-9A2F-25416AEA0573}`` * name: ``ethernet_32770`` * friendly name: ``vEthernet (nat)`` * description: ``Hyper-V Virtual Ethernet Adapter`` This function returns names of the second form from the list, ``ethernet_32770`` in this example case.
* UUID: ``{FB605B73-AAC2-49A6-9A2F-25416AEA0573}`` * name: ``ethernet_32770`` * friendly name: ``vEthernet (nat)`` * description: ``Hyper-V Virtual Ethernet Adapter`` This function returns names of the second form from the list, ``ethernet_32770`` in this example case.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b7f57e68-49ea-4ac1-ac0a-ab5b18ff184f
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,617
supabase-export-v2
df3ad0e47bc37379
.. function:: fromfd(fd, family, type, proto=0) Duplicate the file descriptor *fd* (an integer as returned by a file object's :meth:`~io.IOBase.fileno` method) and build a socket object from the result. Address family, socket type and protocol number are as for the :func:`~socket.socket` function. The file descriptor...
trusted_official_docs
CPython Docs
.. function:: fromfd(fd, family, type, proto=0) Duplicate the file descriptor *fd* (an integer as returned by a file object's :meth:`~io.IOBase.fileno` method) and build a socket object from the result. Address family, socket type and protocol number are as for the :func:`~socket.socket` function. The file descriptor...
.. function:: fromfd(fd, family, type, proto=0) Duplicate the file descriptor *fd* (an integer as returned by a file object's :meth:`~io.IOBase.fileno` method) and build a socket object from the result. Address family, socket type and protocol number are as for the :func:`~socket.socket` function. The file descriptor...
python, official-docs, cpython, P0
Local_Trusted_Corpus
baec57bf-08af-48f6-9e01-f90202947f7f
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,594
supabase-export-v2
5abf62e28571a7c2
type, and protocol number are as for the :func:`~socket.socket` function. The default family is :const:`AF_UNIX` if defined on the platform; otherwise, the default is :const:`AF_INET`. The newly created sockets are :ref:`non-inheritable <fd_inheritance>`.
trusted_official_docs
CPython Docs
type, and protocol number are as for the :func:`~socket.socket` function. The default family is :const:`AF_UNIX` if defined on the platform; otherwise, the default is :const:`AF_INET`. The newly created sockets are :ref:`non-inheritable <fd_inheritance>`.
type, and protocol number are as for the :func:`~socket.socket` function. The default family is :const:`AF_UNIX` if defined on the platform; otherwise, the default is :const:`AF_INET`. The newly created sockets are :ref:`non-inheritable <fd_inheritance>`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
bd353dc1-93fd-4561-8d64-a71ece7ab814
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,683
supabase-export-v2
1c62909661928209
.. function:: getservbyport(port[, protocolname]) Translate an internet port number and protocol name to a service name for that service. The optional protocol name, if given, should be ``'tcp'`` or ``'udp'``, otherwise any protocol will match.
trusted_official_docs
CPython Docs
.. function:: getservbyport(port[, protocolname]) Translate an internet port number and protocol name to a service name for that service. The optional protocol name, if given, should be ``'tcp'`` or ``'udp'``, otherwise any protocol will match.
.. function:: getservbyport(port[, protocolname]) Translate an internet port number and protocol name to a service name for that service. The optional protocol name, if given, should be ``'tcp'`` or ``'udp'``, otherwise any protocol will match.
python, official-docs, cpython, P0
Local_Trusted_Corpus
bd7a91ca-85c1-49bd-966e-6ffe676bb31e
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,806
supabase-export-v2
e3074ab4af2c7f64
.. method:: socket.get_inheritable() Get the :ref:`inheritable flag <fd_inheritance>` of the socket's file descriptor or socket's handle: ``True`` if the socket can be inherited in child processes, ``False`` if it cannot.
trusted_official_docs
CPython Docs
.. method:: socket.get_inheritable() Get the :ref:`inheritable flag <fd_inheritance>` of the socket's file descriptor or socket's handle: ``True`` if the socket can be inherited in child processes, ``False`` if it cannot.
.. method:: socket.get_inheritable() Get the :ref:`inheritable flag <fd_inheritance>` of the socket's file descriptor or socket's handle: ``True`` if the socket can be inherited in child processes, ``False`` if it cannot.
python, official-docs, cpython, P0
Local_Trusted_Corpus
be76863b-bcc7-4bf2-ac56-0402102268a1
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,789
supabase-export-v2
48be625f81e2b35d
For non-blocking sockets, the method raises an :exc:`InterruptedError` exception if the connection is interrupted by a signal (or the exception raised by the signal handler). .. audit-event:: socket.connect self,address socket.socket.connect
trusted_official_docs
CPython Docs
For non-blocking sockets, the method raises an :exc:`InterruptedError` exception if the connection is interrupted by a signal (or the exception raised by the signal handler). .. audit-event:: socket.connect self,address socket.socket.connect
For non-blocking sockets, the method raises an :exc:`InterruptedError` exception if the connection is interrupted by a signal (or the exception raised by the signal handler). .. audit-event:: socket.connect self,address socket.socket.connect
python, official-docs, cpython, P0
Local_Trusted_Corpus
bf143e14-2392-4cbb-aea2-957a983355d0
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,932
supabase-export-v2
65c459cdb303540d
Timeouts and the ``accept`` method ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ If :func:`getdefaulttimeout` is not :const:`None`, sockets returned by the :meth:`~socket.accept` method inherit that timeout. Otherwise, the behaviour depends on settings of the listening socket:
trusted_official_docs
CPython Docs
Timeouts and the ``accept`` method ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ If :func:`getdefaulttimeout` is not :const:`None`, sockets returned by the :meth:`~socket.accept` method inherit that timeout. Otherwise, the behaviour depends on settings of the listening socket:
Timeouts and the ``accept`` method ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ If :func:`getdefaulttimeout` is not :const:`None`, sockets returned by the :meth:`~socket.accept` method inherit that timeout. Otherwise, the behaviour depends on settings of the listening socket:
python, official-docs, cpython, P0
Local_Trusted_Corpus
bf98d625-9420-48e1-a942-fde5568bf3dc
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,887
supabase-export-v2
04d67355152469b1
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.sendmsg_afalg([msg], *, op[, iv[, assoclen[, flags]]])
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.sendmsg_afalg([msg], *, op[, iv[, assoclen[, flags]]])
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.sendmsg_afalg([msg], *, op[, iv[, assoclen[, flags]]])
python, official-docs, cpython, P0
Local_Trusted_Corpus
c0e9cdf9-aadd-4185-94e0-411e8b2dc24b
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,948
supabase-export-v2
56fd2e364c3372a9
msg: s.close() s = None continue break if s is None: print('could not open socket') sys.exit(1) with s: s.sendall(b'Hello, world') data = s.recv(1024) print('Received', repr(data)) The next example shows how to write a very simple network sniffer with raw sockets on Windows. The example requires administrator privilege...
trusted_official_docs
CPython Docs
msg: s.close() s = None continue break if s is None: print('could not open socket') sys.exit(1) with s: s.sendall(b'Hello, world') data = s.recv(1024) print('Received', repr(data)) The next example shows how to write a very simple network sniffer with raw sockets on Windows. The example requires administrator privilege...
msg: s.close() s = None continue break if s is None: print('could not open socket') sys.exit(1) with s: s.sendall(b'Hello, world') data = s.recv(1024) print('Received', repr(data)) The next example shows how to write a very simple network sniffer with raw sockets on Windows. The example requires administrator privilege...
python, official-docs, cpython, P0
Local_Trusted_Corpus
c1328732-1b83-483d-81ff-d48551daadeb
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,927
supabase-export-v2
b03f95eb836dcdeb
cannot be completed immediately: functions from the :mod:`select` module can be used to know when and whether a socket is available for reading or writing. * In *timeout mode*, operations fail if they cannot be completed within the timeout specified for the socket (they raise a :exc:`timeout` exception) or if the sys...
trusted_official_docs
CPython Docs
cannot be completed immediately: functions from the :mod:`select` module can be used to know when and whether a socket is available for reading or writing. * In *timeout mode*, operations fail if they cannot be completed within the timeout specified for the socket (they raise a :exc:`timeout` exception) or if the sys...
cannot be completed immediately: functions from the :mod:`select` module can be used to know when and whether a socket is available for reading or writing. * In *timeout mode*, operations fail if they cannot be completed within the timeout specified for the socket (they raise a :exc:`timeout` exception) or if the sys...
python, official-docs, cpython, P0
Local_Trusted_Corpus
c338d7c6-92f5-450c-8802-3fb08ebf10b2
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,870
supabase-export-v2
a1af51ec8e6bc14c
is returned on success. On error, an exception is raised, and there is no way to determine how much data, if any, was successfully sent. .. versionchanged:: 3.5 The socket timeout is no longer reset each time data is sent successfully. The socket timeout is now the maximum total duration to send all data.
trusted_official_docs
CPython Docs
is returned on success. On error, an exception is raised, and there is no way to determine how much data, if any, was successfully sent. .. versionchanged:: 3.5 The socket timeout is no longer reset each time data is sent successfully. The socket timeout is now the maximum total duration to send all data.
is returned on success. On error, an exception is raised, and there is no way to determine how much data, if any, was successfully sent. .. versionchanged:: 3.5 The socket timeout is no longer reset each time data is sent successfully. The socket timeout is now the maximum total duration to send all data.
python, official-docs, cpython, P0
Local_Trusted_Corpus
c64e9bd7-52d2-4ad9-961e-c1d168a83497
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,743
supabase-export-v2
6f84a8a1653e4f47
On Windows network interfaces have different names in different contexts (all names are examples): * UUID: ``{FB605B73-AAC2-49A6-9A2F-25416AEA0573}`` * name: ``ethernet_32770`` * friendly name: ``vEthernet (nat)`` * description: ``Hyper-V Virtual Ethernet Adapter``
trusted_official_docs
CPython Docs
On Windows network interfaces have different names in different contexts (all names are examples): * UUID: ``{FB605B73-AAC2-49A6-9A2F-25416AEA0573}`` * name: ``ethernet_32770`` * friendly name: ``vEthernet (nat)`` * description: ``Hyper-V Virtual Ethernet Adapter``
On Windows network interfaces have different names in different contexts (all names are examples): * UUID: ``{FB605B73-AAC2-49A6-9A2F-25416AEA0573}`` * name: ``ethernet_32770`` * friendly name: ``vEthernet (nat)`` * description: ``Hyper-V Virtual Ethernet Adapter``
python, official-docs, cpython, P0
Local_Trusted_Corpus
c71e62c5-ce73-476a-9496-a2dc0f1dfe0a
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,933
supabase-export-v2
2b934a692a267a17
If :func:`getdefaulttimeout` is not :const:`None`, sockets returned by the :meth:`~socket.accept` method inherit that timeout. Otherwise, the behaviour depends on settings of the listening socket: * if the listening socket is in *blocking mode* or in *timeout mode*, the socket returned by :meth:`~socket.accept` is in ...
trusted_official_docs
CPython Docs
If :func:`getdefaulttimeout` is not :const:`None`, sockets returned by the :meth:`~socket.accept` method inherit that timeout. Otherwise, the behaviour depends on settings of the listening socket: * if the listening socket is in *blocking mode* or in *timeout mode*, the socket returned by :meth:`~socket.accept` is in ...
If :func:`getdefaulttimeout` is not :const:`None`, sockets returned by the :meth:`~socket.accept` method inherit that timeout. Otherwise, the behaviour depends on settings of the listening socket: * if the listening socket is in *blocking mode* or in *timeout mode*, the socket returned by :meth:`~socket.accept` is in ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
c858d5d0-1c64-4da6-b0a3-eddf1fb52191
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,716
supabase-export-v2
553ff7638f1e3ac0
.. versionchanged:: 3.5 Writable :term:`bytes-like object` is now accepted. .. XXX: Are sendmsg(), recvmsg() and CMSG_*() available on any non-Unix platforms? The old (obsolete?) 4.2BSD form of the interface, in which struct msghdr has no msg_control or msg_controllen members, is not currently supported.
trusted_official_docs
CPython Docs
.. versionchanged:: 3.5 Writable :term:`bytes-like object` is now accepted. .. XXX: Are sendmsg(), recvmsg() and CMSG_*() available on any non-Unix platforms? The old (obsolete?) 4.2BSD form of the interface, in which struct msghdr has no msg_control or msg_controllen members, is not currently supported.
.. versionchanged:: 3.5 Writable :term:`bytes-like object` is now accepted. .. XXX: Are sendmsg(), recvmsg() and CMSG_*() available on any non-Unix platforms? The old (obsolete?) 4.2BSD form of the interface, in which struct msghdr has no msg_control or msg_controllen members, is not currently supported.
python, official-docs, cpython, P0
Local_Trusted_Corpus
c89240d4-27ff-49e6-aed1-c706a5569d6b
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,773
supabase-export-v2
e4b78517b23151ff
usable to send and receive data on the connection, and *address* is the address bound to the socket on the other end of the connection. The newly created socket is :ref:`non-inheritable <fd_inheritance>`.
trusted_official_docs
CPython Docs
usable to send and receive data on the connection, and *address* is the address bound to the socket on the other end of the connection. The newly created socket is :ref:`non-inheritable <fd_inheritance>`.
usable to send and receive data on the connection, and *address* is the address bound to the socket on the other end of the connection. The newly created socket is :ref:`non-inheritable <fd_inheritance>`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
c96902cf-e3eb-4cf5-a30b-ec1e97aafa83
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,602
supabase-export-v2
e7e4156f4877b60a
to bind to as its source address before connecting. If host or port are '' or 0 respectively the OS default behavior will be used. When a connection cannot be created, an exception is raised. By default, it is the exception from the last address in the list. If *all_errors* is ``True``, it is an :exc:`ExceptionGroup`...
trusted_official_docs
CPython Docs
to bind to as its source address before connecting. If host or port are '' or 0 respectively the OS default behavior will be used. When a connection cannot be created, an exception is raised. By default, it is the exception from the last address in the list. If *all_errors* is ``True``, it is an :exc:`ExceptionGroup`...
to bind to as its source address before connecting. If host or port are '' or 0 respectively the OS default behavior will be used. When a connection cannot be created, an exception is raised. By default, it is the exception from the last address in the list. If *all_errors* is ``True``, it is an :exc:`ExceptionGroup`...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ca721fa1-24a3-493c-b5a7-ae3ab5c69e86
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,684
supabase-export-v2
9c40d35cd3226e0c
protocol name to a service name for that service. The optional protocol name, if given, should be ``'tcp'`` or ``'udp'``, otherwise any protocol will match. .. audit-event:: socket.getservbyport port,protocolname socket.getservbyport
trusted_official_docs
CPython Docs
protocol name to a service name for that service. The optional protocol name, if given, should be ``'tcp'`` or ``'udp'``, otherwise any protocol will match. .. audit-event:: socket.getservbyport port,protocolname socket.getservbyport
protocol name to a service name for that service. The optional protocol name, if given, should be ``'tcp'`` or ``'udp'``, otherwise any protocol will match. .. audit-event:: socket.getservbyport port,protocolname socket.getservbyport
python, official-docs, cpython, P0
Local_Trusted_Corpus
cb1e2b60-0fa7-4cde-9ebe-3a2856a8762b
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,687
supabase-export-v2
ba397da6ec82f41f
.. function:: ntohl(x) Convert 32-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 4-byte swap operation.
trusted_official_docs
CPython Docs
.. function:: ntohl(x) Convert 32-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 4-byte swap operation.
.. function:: ntohl(x) Convert 32-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 4-byte swap operation.
python, official-docs, cpython, P0
Local_Trusted_Corpus
cbefe719-7029-43bf-a5a6-aa76bb12ad05
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,718
supabase-export-v2
9b33624a93b6ebf2
.. function:: CMSG_LEN(length) Return the total length, without trailing padding, of an ancillary data item with associated data of the given *length*. This value can often be used as the buffer size for :meth:`~socket.recvmsg` to receive a single item of ancillary data, but :rfc:`3542` requires portable applicatio...
trusted_official_docs
CPython Docs
.. function:: CMSG_LEN(length) Return the total length, without trailing padding, of an ancillary data item with associated data of the given *length*. This value can often be used as the buffer size for :meth:`~socket.recvmsg` to receive a single item of ancillary data, but :rfc:`3542` requires portable applicatio...
.. function:: CMSG_LEN(length) Return the total length, without trailing padding, of an ancillary data item with associated data of the given *length*. This value can often be used as the buffer size for :meth:`~socket.recvmsg` to receive a single item of ancillary data, but :rfc:`3542` requires portable applicatio...
python, official-docs, cpython, P0
Local_Trusted_Corpus
cccdf83c-a6d6-4b12-b7ed-eb6ccc9744d0
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,441
supabase-export-v2
13ac7e3ac8821f2e
A deprecated alias of :exc:`TimeoutError`. A subclass of :exc:`OSError`, this exception is raised when a timeout occurs on a socket which has had timeouts enabled via a prior call to :meth:`~socket.settimeout` (or implicitly through :func:`~socket.setdefaulttimeout`). The accompanying value is a string whose value ...
trusted_official_docs
CPython Docs
A deprecated alias of :exc:`TimeoutError`. A subclass of :exc:`OSError`, this exception is raised when a timeout occurs on a socket which has had timeouts enabled via a prior call to :meth:`~socket.settimeout` (or implicitly through :func:`~socket.setdefaulttimeout`). The accompanying value is a string whose value ...
A deprecated alias of :exc:`TimeoutError`. A subclass of :exc:`OSError`, this exception is raised when a timeout occurs on a socket which has had timeouts enabled via a prior call to :meth:`~socket.settimeout` (or implicitly through :func:`~socket.setdefaulttimeout`). The accompanying value is a string whose value ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
cdd9d8d9-52b3-425c-8c23-f3a277bf562f
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,420
supabase-export-v2
a1ed9144234ad692
.. versionadded:: 3.9 - :const:`AF_HYPERV` is a Windows-only socket based interface for communicating with Hyper-V hosts and guests. The address family is represented as a ``(vm_id, service_id)`` tuple where the ``vm_id`` and ``service_id`` are UUID strings.
trusted_official_docs
CPython Docs
.. versionadded:: 3.9 - :const:`AF_HYPERV` is a Windows-only socket based interface for communicating with Hyper-V hosts and guests. The address family is represented as a ``(vm_id, service_id)`` tuple where the ``vm_id`` and ``service_id`` are UUID strings.
.. versionadded:: 3.9 - :const:`AF_HYPERV` is a Windows-only socket based interface for communicating with Hyper-V hosts and guests. The address family is represented as a ``(vm_id, service_id)`` tuple where the ``vm_id`` and ``service_id`` are UUID strings.
python, official-docs, cpython, P0
Local_Trusted_Corpus
ce0edc2a-6667-452f-a8e7-36475743dd79
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,411
supabase-export-v2
68ea650619d86ded
to capture all protocols, one of the :ref:`ETHERTYPE_* constants <socket-ethernet-types>` or any other Ethernet protocol number. - *pkttype* - Optional integer specifying the packet type: - ``PACKET_HOST`` (the default) - Packet addressed to the local host. - ``PACKET_BROADCAST`` - Physical-layer broadcast packet. - ``...
trusted_official_docs
CPython Docs
to capture all protocols, one of the :ref:`ETHERTYPE_* constants <socket-ethernet-types>` or any other Ethernet protocol number. - *pkttype* - Optional integer specifying the packet type: - ``PACKET_HOST`` (the default) - Packet addressed to the local host. - ``PACKET_BROADCAST`` - Physical-layer broadcast packet. - ``...
to capture all protocols, one of the :ref:`ETHERTYPE_* constants <socket-ethernet-types>` or any other Ethernet protocol number. - *pkttype* - Optional integer specifying the packet type: - ``PACKET_HOST`` (the default) - Packet addressed to the local host. - ``PACKET_BROADCAST`` - Physical-layer broadcast packet. - ``...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ce249a08-b689-40b9-b12d-172f6195f65f
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,637
supabase-export-v2
50100dcf1174872d
socket address, whose format depends on the returned *family* and flags Python was compiled with, and is meant to be passed to the :meth:`socket.connect` method. *sockaddr* can be one of the following:
trusted_official_docs
CPython Docs
socket address, whose format depends on the returned *family* and flags Python was compiled with, and is meant to be passed to the :meth:`socket.connect` method. *sockaddr* can be one of the following:
socket address, whose format depends on the returned *family* and flags Python was compiled with, and is meant to be passed to the :meth:`socket.connect` method. *sockaddr* can be one of the following:
python, official-docs, cpython, P0
Local_Trusted_Corpus
cf168ec1-18e1-4205-8a83-6698fb62a6cf
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,427
supabase-export-v2
c7064115a10b11c2
exceptions for invalid argument types and out-of-memory conditions can be raised. Errors related to socket or address semantics raise :exc:`OSError` or one of its subclasses. Non-blocking mode is supported through :meth:`~socket.setblocking`. A generalization of this based on timeouts is supported through :meth:`~socke...
trusted_official_docs
CPython Docs
exceptions for invalid argument types and out-of-memory conditions can be raised. Errors related to socket or address semantics raise :exc:`OSError` or one of its subclasses. Non-blocking mode is supported through :meth:`~socket.setblocking`. A generalization of this based on timeouts is supported through :meth:`~socke...
exceptions for invalid argument types and out-of-memory conditions can be raised. Errors related to socket or address semantics raise :exc:`OSError` or one of its subclasses. Non-blocking mode is supported through :meth:`~socket.setblocking`. A generalization of this based on timeouts is supported through :meth:`~socke...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d21393c6-0e82-42e4-a01f-d5735da46245
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,483
supabase-export-v2
aa37f4c8775d98ed
.. data:: CAN_RAW_FD_FRAMES Enables CAN FD support in a CAN_RAW socket. This is disabled by default. This allows your application to send both CAN and CAN FD frames; however, you must accept both CAN and CAN FD frames when reading from the socket.
trusted_official_docs
CPython Docs
.. data:: CAN_RAW_FD_FRAMES Enables CAN FD support in a CAN_RAW socket. This is disabled by default. This allows your application to send both CAN and CAN FD frames; however, you must accept both CAN and CAN FD frames when reading from the socket.
.. data:: CAN_RAW_FD_FRAMES Enables CAN FD support in a CAN_RAW socket. This is disabled by default. This allows your application to send both CAN and CAN FD frames; however, you must accept both CAN and CAN FD frames when reading from the socket.
python, official-docs, cpython, P0
Local_Trusted_Corpus
d374fc9f-8d97-4e7a-8556-fa11b243771f
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,871
supabase-export-v2
8839995de5cf619f
socket timeout is no longer reset each time data is sent successfully. The socket timeout is now the maximum total duration to send all data. .. 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...
trusted_official_docs
CPython Docs
socket timeout is no longer reset each time data is sent successfully. The socket timeout is now the maximum total duration to send all data. .. 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...
socket timeout is no longer reset each time data is sent successfully. The socket timeout is now the maximum total duration to send all data. .. 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...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d444e5cf-c2ca-4f2d-8d8d-951461a99a5e
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,790
supabase-export-v2
3bdff070ad93f717
.. audit-event:: socket.connect self,address socket.socket.connect .. versionchanged:: 3.5 The method now waits until the connection completes instead of raising an :exc:`InterruptedError` exception if the connection is interrupted by a signal, the signal handler doesn't raise an exception and the socket is blockin...
trusted_official_docs
CPython Docs
.. audit-event:: socket.connect self,address socket.socket.connect .. versionchanged:: 3.5 The method now waits until the connection completes instead of raising an :exc:`InterruptedError` exception if the connection is interrupted by a signal, the signal handler doesn't raise an exception and the socket is blockin...
.. audit-event:: socket.connect self,address socket.socket.connect .. versionchanged:: 3.5 The method now waits until the connection completes instead of raising an :exc:`InterruptedError` exception if the connection is interrupted by a signal, the signal handler doesn't raise an exception and the socket is blockin...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d44c3132-a465-45ea-8e27-edf9e9260159
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,680
supabase-export-v2
2e30abc12fee2959
protocol name to a port number for that service. The optional protocol name, if given, should be ``'tcp'`` or ``'udp'``, otherwise any protocol will match. .. audit-event:: socket.getservbyname servicename,protocolname socket.getservbyname
trusted_official_docs
CPython Docs
protocol name to a port number for that service. The optional protocol name, if given, should be ``'tcp'`` or ``'udp'``, otherwise any protocol will match. .. audit-event:: socket.getservbyname servicename,protocolname socket.getservbyname
protocol name to a port number for that service. The optional protocol name, if given, should be ``'tcp'`` or ``'udp'``, otherwise any protocol will match. .. audit-event:: socket.getservbyname servicename,protocolname socket.getservbyname
python, official-docs, cpython, P0
Local_Trusted_Corpus
d4834b4a-f79b-4760-b86d-1d0189fbdc97
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,426
supabase-export-v2
6cb7abe809e9ee42
an actual IPv4/v6 address, depending on the results from DNS resolution and/or the host configuration. For deterministic behavior use a numeric address in *host* portion. All errors raise exceptions. The normal exceptions for invalid argument types and out-of-memory conditions can be raised. Errors related to socket or...
trusted_official_docs
CPython Docs
an actual IPv4/v6 address, depending on the results from DNS resolution and/or the host configuration. For deterministic behavior use a numeric address in *host* portion. All errors raise exceptions. The normal exceptions for invalid argument types and out-of-memory conditions can be raised. Errors related to socket or...
an actual IPv4/v6 address, depending on the results from DNS resolution and/or the host configuration. For deterministic behavior use a numeric address in *host* portion. All errors raise exceptions. The normal exceptions for invalid argument types and out-of-memory conditions can be raised. Errors related to socket or...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d4bbb23c-4416-4fd0-a6f4-0b1dd6bff222
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,599
supabase-export-v2
58114a18c189fc9d
.. function:: create_connection(address, timeout=GLOBAL_DEFAULT, source_address=None, *, all_errors=False) Connect to a TCP service listening on the internet *address* (a 2-tuple ``(host, port)``), and return the socket object. This is a higher-level function than :meth:`socket.connect`: if *host* is a non-numeric ho...
trusted_official_docs
CPython Docs
.. function:: create_connection(address, timeout=GLOBAL_DEFAULT, source_address=None, *, all_errors=False) Connect to a TCP service listening on the internet *address* (a 2-tuple ``(host, port)``), and return the socket object. This is a higher-level function than :meth:`socket.connect`: if *host* is a non-numeric ho...
.. function:: create_connection(address, timeout=GLOBAL_DEFAULT, source_address=None, *, all_errors=False) Connect to a TCP service listening on the internet *address* (a 2-tuple ``(host, port)``), and return the socket object. This is a higher-level function than :meth:`socket.connect`: if *host* is a non-numeric ho...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d71c1698-c726-467b-89c6-685f9939ebe2
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,793
supabase-export-v2
6cf9e885b7375dbd
.. method:: socket.connect_ex(address) Like ``connect(address)``, but return an error indicator instead of raising an exception for errors returned by the C-level :c:func:`connect` call (other problems, such as "host not found," can still raise exceptions). The error indicator is ``0`` if the operation succeeded, ot...
trusted_official_docs
CPython Docs
.. method:: socket.connect_ex(address) Like ``connect(address)``, but return an error indicator instead of raising an exception for errors returned by the C-level :c:func:`connect` call (other problems, such as "host not found," can still raise exceptions). The error indicator is ``0`` if the operation succeeded, ot...
.. method:: socket.connect_ex(address) Like ``connect(address)``, but return an error indicator instead of raising an exception for errors returned by the C-level :c:func:`connect` call (other problems, such as "host not found," can still raise exceptions). The error indicator is ``0`` if the operation succeeded, ot...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d7472c03-724c-4db3-b24b-5a189f7d48b4
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,943
supabase-export-v2
ea21ecb008d94652
try to connect to all the addresses returned as a result of the name resolution, and sends traffic to the first one connected successfully. :: # Echo server program import socket import sys
trusted_official_docs
CPython Docs
try to connect to all the addresses returned as a result of the name resolution, and sends traffic to the first one connected successfully. :: # Echo server program import socket import sys
try to connect to all the addresses returned as a result of the name resolution, and sends traffic to the first one connected successfully. :: # Echo server program import socket import sys
python, official-docs, cpython, P0
Local_Trusted_Corpus
d894208f-e143-47d1-baa9-a7876fa07893
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,727
supabase-export-v2
94049014f85b2ce7
.. function:: getdefaulttimeout() Return the default timeout in seconds (float) for new socket objects. A value of ``None`` indicates that new socket objects have no timeout. When the socket module is first imported, the default is ``None``.
trusted_official_docs
CPython Docs
.. function:: getdefaulttimeout() Return the default timeout in seconds (float) for new socket objects. A value of ``None`` indicates that new socket objects have no timeout. When the socket module is first imported, the default is ``None``.
.. function:: getdefaulttimeout() Return the default timeout in seconds (float) for new socket objects. A value of ``None`` indicates that new socket objects have no timeout. When the socket module is first imported, the default is ``None``.
python, official-docs, cpython, P0
Local_Trusted_Corpus
d96d3f54-f4e0-40ad-8ce8-a4135f6322cf
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,850
supabase-export-v2
04404fccda4d6a59
and will return the part of it which is inside the buffer provided it has not been truncated before the start of its associated data. On systems which support the :const:`SCM_RIGHTS` mechanism, the following function will receive up to *maxfds* file descriptors, returning the message data and a list containing the de...
trusted_official_docs
CPython Docs
and will return the part of it which is inside the buffer provided it has not been truncated before the start of its associated data. On systems which support the :const:`SCM_RIGHTS` mechanism, the following function will receive up to *maxfds* file descriptors, returning the message data and a list containing the de...
and will return the part of it which is inside the buffer provided it has not been truncated before the start of its associated data. On systems which support the :const:`SCM_RIGHTS` mechanism, the following function will receive up to *maxfds* file descriptors, returning the message data and a list containing the de...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d9a033d8-f09d-4289-9e7d-ce5ea5e8e0c7
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,466
supabase-export-v2
f4588e9bddbfb1b0
.. 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. .. 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.
trusted_official_docs
CPython Docs
.. 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. .. 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.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. .. 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.
python, official-docs, cpython, P0
Local_Trusted_Corpus
dccbce53-1ad4-49bf-ab1c-57515c50cf27
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,939
supabase-export-v2
3d15a7f71f819ec3
# Echo server program import socket HOST = '' # Symbolic name meaning all available interfaces PORT = 50007 # Arbitrary non-privileged port with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s: s.bind((HOST, PORT)) s.listen(1) conn, addr = s.accept() with conn: print('Connected by', addr) while True: da...
trusted_official_docs
CPython Docs
# Echo server program import socket HOST = '' # Symbolic name meaning all available interfaces PORT = 50007 # Arbitrary non-privileged port with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s: s.bind((HOST, PORT)) s.listen(1) conn, addr = s.accept() with conn: print('Connected by', addr) while True: da...
# Echo server program import socket HOST = '' # Symbolic name meaning all available interfaces PORT = 50007 # Arbitrary non-privileged port with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s: s.bind((HOST, PORT)) s.listen(1) conn, addr = s.accept() with conn: print('Connected by', addr) while True: da...
python, official-docs, cpython, P0
Local_Trusted_Corpus
dfad0062-cbff-4b19-b963-bb2171dae9b4
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,813
supabase-export-v2
b2476b6e5e88c7dd
.. method:: socket.getsockopt(level, optname[, buflen]) Return the value of the given socket option (see the Unix man page :manpage:`getsockopt(2)`). The needed symbolic constants (:ref:`SO_\* etc. <socket-unix-constants>`) are defined in this module. If *buflen* is absent, an integer option is assumed and its integ...
trusted_official_docs
CPython Docs
.. method:: socket.getsockopt(level, optname[, buflen]) Return the value of the given socket option (see the Unix man page :manpage:`getsockopt(2)`). The needed symbolic constants (:ref:`SO_\* etc. <socket-unix-constants>`) are defined in this module. If *buflen* is absent, an integer option is assumed and its integ...
.. method:: socket.getsockopt(level, optname[, buflen]) Return the value of the given socket option (see the Unix man page :manpage:`getsockopt(2)`). The needed symbolic constants (:ref:`SO_\* etc. <socket-unix-constants>`) are defined in this module. If *buflen* is absent, an integer option is assumed and its integ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e07a24f8-809a-417e-9808-d9f3702c2dc8
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,438
supabase-export-v2
9c1ba35a37dbf804
description of *error*, as returned by the :c:func:`gai_strerror` C function. The numeric *error* value will match one of the :const:`!EAI_\*` constants defined in this module. .. versionchanged:: 3.3 This class was made a subclass of :exc:`OSError`.
trusted_official_docs
CPython Docs
description of *error*, as returned by the :c:func:`gai_strerror` C function. The numeric *error* value will match one of the :const:`!EAI_\*` constants defined in this module. .. versionchanged:: 3.3 This class was made a subclass of :exc:`OSError`.
description of *error*, as returned by the :c:func:`gai_strerror` C function. The numeric *error* value will match one of the :const:`!EAI_\*` constants defined in this module. .. versionchanged:: 3.3 This class was made a subclass of :exc:`OSError`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
e105803b-b240-4b39-ac84-920d34fa1722
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,941
supabase-export-v2
f55be5472d82b068
# Echo client program import socket HOST = 'daring.cwi.nl' # The remote host PORT = 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))
trusted_official_docs
CPython Docs
# Echo client program import socket HOST = 'daring.cwi.nl' # The remote host PORT = 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))
# Echo client program import socket HOST = 'daring.cwi.nl' # The remote host PORT = 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))
python, official-docs, cpython, P0
Local_Trusted_Corpus
e19c5b54-8b87-4cf0-ab6d-1ae1b96991b4
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,653
supabase-export-v2
04587a1b73e9f758
.. function:: gethostbyname(hostname) Translate a host name to IPv4 address format. The IPv4 address is returned as a string, such as ``'100.50.200.5'``. If the host name is an IPv4 address itself it is returned unchanged. See :func:`gethostbyname_ex` for a more complete interface. :func:`gethostbyname` does not sup...
trusted_official_docs
CPython Docs
.. function:: gethostbyname(hostname) Translate a host name to IPv4 address format. The IPv4 address is returned as a string, such as ``'100.50.200.5'``. If the host name is an IPv4 address itself it is returned unchanged. See :func:`gethostbyname_ex` for a more complete interface. :func:`gethostbyname` does not sup...
.. function:: gethostbyname(hostname) Translate a host name to IPv4 address format. The IPv4 address is returned as a string, such as ``'100.50.200.5'``. If the host name is an IPv4 address itself it is returned unchanged. See :func:`gethostbyname_ex` for a more complete interface. :func:`gethostbyname` does not sup...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e1f9d644-567a-489d-a458-749e08657825
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,707
supabase-export-v2
71e4311a5bff23fa
a packed, binary format. :func:`inet_pton` is useful when a library or network protocol calls for an object of type :c:struct:`in_addr` (similar to :func:`inet_aton`) or :c:struct:`in6_addr`. Supported values for *address_family* are currently :const:`AF_INET` and :const:`AF_INET6`. If the IP address string *ip_string...
trusted_official_docs
CPython Docs
a packed, binary format. :func:`inet_pton` is useful when a library or network protocol calls for an object of type :c:struct:`in_addr` (similar to :func:`inet_aton`) or :c:struct:`in6_addr`. Supported values for *address_family* are currently :const:`AF_INET` and :const:`AF_INET6`. If the IP address string *ip_string...
a packed, binary format. :func:`inet_pton` is useful when a library or network protocol calls for an object of type :c:struct:`in_addr` (similar to :func:`inet_aton`) or :c:struct:`in6_addr`. Supported values for *address_family* are currently :const:`AF_INET` and :const:`AF_INET6`. If the IP address string *ip_string...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e280d96c-b702-4be2-b9ef-d67f3d44d836
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,692
supabase-export-v2
817bb96aceb65069
.. function:: htonl(x) Convert 32-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 4-byte swap operation.
trusted_official_docs
CPython Docs
.. function:: htonl(x) Convert 32-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 4-byte swap operation.
.. function:: htonl(x) Convert 32-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 4-byte swap operation.
python, official-docs, cpython, P0
Local_Trusted_Corpus
e42b3628-3aa0-47d9-8bbb-4a5d6dba2a85
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,934
supabase-export-v2
7863adc6a261fb26
* if the listening socket is in *blocking mode* or in *timeout mode*, the socket returned by :meth:`~socket.accept` is in *blocking mode*; * if the listening socket is in *non-blocking mode*, whether the socket returned by :meth:`~socket.accept` is in blocking or non-blocking mode is operating system-dependent. If yo...
trusted_official_docs
CPython Docs
* if the listening socket is in *blocking mode* or in *timeout mode*, the socket returned by :meth:`~socket.accept` is in *blocking mode*; * if the listening socket is in *non-blocking mode*, whether the socket returned by :meth:`~socket.accept` is in blocking or non-blocking mode is operating system-dependent. If yo...
* if the listening socket is in *blocking mode* or in *timeout mode*, the socket returned by :meth:`~socket.accept` is in *blocking mode*; * if the listening socket is in *non-blocking mode*, whether the socket returned by :meth:`~socket.accept` is in blocking or non-blocking mode is operating system-dependent. If yo...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e4584bf6-a6c3-4e93-bd0f-10cfcb06c327
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,375
supabase-export-v2
e88eee6d414bfca7
*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. - For IPv4 addresses, two special forms are accepted instead of a host address: ``''`` represents :const:`INADDR_ANY`, which is used to bind to al...
trusted_official_docs
CPython Docs
*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. - For IPv4 addresses, two special forms are accepted instead of a host address: ``''`` represents :const:`INADDR_ANY`, which is used to bind to al...
*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. - For IPv4 addresses, two special forms are accepted instead of a host address: ``''`` represents :const:`INADDR_ANY`, which is used to bind to al...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e4cf2678-4ec3-473d-936e-2e9efb2b94d8
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,390
supabase-export-v2
4d3e5c42244c16ed
the Channel Identifier. If not given, defaults to zero. - ``bdaddr_type`` is an optional integer specifying the address type; one of :const:`BDADDR_BREDR` (default), :const:`BDADDR_LE_PUBLIC`, :const:`BDADDR_LE_RANDOM`. .. versionchanged:: 3.14 Added ``cid`` and ``bdaddr_type`` fields.
trusted_official_docs
CPython Docs
the Channel Identifier. If not given, defaults to zero. - ``bdaddr_type`` is an optional integer specifying the address type; one of :const:`BDADDR_BREDR` (default), :const:`BDADDR_LE_PUBLIC`, :const:`BDADDR_LE_RANDOM`. .. versionchanged:: 3.14 Added ``cid`` and ``bdaddr_type`` fields.
the Channel Identifier. If not given, defaults to zero. - ``bdaddr_type`` is an optional integer specifying the address type; one of :const:`BDADDR_BREDR` (default), :const:`BDADDR_LE_PUBLIC`, :const:`BDADDR_LE_RANDOM`. .. versionchanged:: 3.14 Added ``cid`` and ``bdaddr_type`` fields.
python, official-docs, cpython, P0
Local_Trusted_Corpus
e576ab6a-c89f-4e6c-b10f-fb9263b267f6
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,828
supabase-export-v2
0b29935212244840
.. method:: socket.listen([backlog]) Enable a server to accept connections. If *backlog* is specified, it must be at least 0 (if it is lower, it is set to 0); it specifies the number of unaccepted connections that the system will allow before refusing new connections. If not specified, a default reasonable value is ...
trusted_official_docs
CPython Docs
.. method:: socket.listen([backlog]) Enable a server to accept connections. If *backlog* is specified, it must be at least 0 (if it is lower, it is set to 0); it specifies the number of unaccepted connections that the system will allow before refusing new connections. If not specified, a default reasonable value is ...
.. method:: socket.listen([backlog]) Enable a server to accept connections. If *backlog* is specified, it must be at least 0 (if it is lower, it is set to 0); it specifies the number of unaccepted connections that the system will allow before refusing new connections. If not specified, a default reasonable value is ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e5f9312f-0b83-4ff2-a177-af8364f46c47
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,454
supabase-export-v2
baa40937ec6ef84b
.. data:: SOCK_CLOEXEC SOCK_NONBLOCK These two constants, if defined, can be combined with the socket types and allow you to set some flags atomically (thus avoiding possible race conditions and the need for separate calls).
trusted_official_docs
CPython Docs
.. data:: SOCK_CLOEXEC SOCK_NONBLOCK These two constants, if defined, can be combined with the socket types and allow you to set some flags atomically (thus avoiding possible race conditions and the need for separate calls).
.. data:: SOCK_CLOEXEC SOCK_NONBLOCK These two constants, if defined, can be combined with the socket types and allow you to set some flags atomically (thus avoiding possible race conditions and the need for separate calls).
python, official-docs, cpython, P0
Local_Trusted_Corpus
e704b287-dc6b-4150-8223-8d227178c1ca
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,461
supabase-export-v2
b2e840cf0a1990a8
objects. In most cases, only those symbols that are defined in the Unix header files are defined; for a few symbols, default values are provided. .. versionchanged:: 3.6 ``SO_DOMAIN``, ``SO_PROTOCOL``, ``SO_PEERSEC``, ``SO_PASSSEC``, ``TCP_USER_TIMEOUT``, ``TCP_CONGESTION`` were added.
trusted_official_docs
CPython Docs
objects. In most cases, only those symbols that are defined in the Unix header files are defined; for a few symbols, default values are provided. .. versionchanged:: 3.6 ``SO_DOMAIN``, ``SO_PROTOCOL``, ``SO_PEERSEC``, ``SO_PASSSEC``, ``TCP_USER_TIMEOUT``, ``TCP_CONGESTION`` were added.
objects. In most cases, only those symbols that are defined in the Unix header files are defined; for a few symbols, default values are provided. .. versionchanged:: 3.6 ``SO_DOMAIN``, ``SO_PROTOCOL``, ``SO_PEERSEC``, ``SO_PASSSEC``, ``TCP_USER_TIMEOUT``, ``TCP_CONGESTION`` were added.
python, official-docs, cpython, P0
Local_Trusted_Corpus
e9df10ef-f76c-4a4d-b8ac-97c8e7d2d2ff
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,412
supabase-export-v2
3951c8f5041cd565
Optional integer specifying the ARP hardware address type. - *addr* - Optional bytes-like object specifying the hardware physical address, whose interpretation depends on the device. .. availability:: Linux >= 2.2.
trusted_official_docs
CPython Docs
Optional integer specifying the ARP hardware address type. - *addr* - Optional bytes-like object specifying the hardware physical address, whose interpretation depends on the device. .. availability:: Linux >= 2.2.
Optional integer specifying the ARP hardware address type. - *addr* - Optional bytes-like object specifying the hardware physical address, whose interpretation depends on the device. .. availability:: Linux >= 2.2.
python, official-docs, cpython, P0
Local_Trusted_Corpus
ea15827b-2840-43be-a199-07f79ccaa7f5
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,667
supabase-export-v2
13c7a45ad86cd036
host (most likely containing only a single address). To find the fully qualified domain name, use the function :func:`getfqdn`. :func:`gethostbyaddr` supports both IPv4 and IPv6. .. audit-event:: socket.gethostbyaddr ip_address socket.gethostbyaddr
trusted_official_docs
CPython Docs
host (most likely containing only a single address). To find the fully qualified domain name, use the function :func:`getfqdn`. :func:`gethostbyaddr` supports both IPv4 and IPv6. .. audit-event:: socket.gethostbyaddr ip_address socket.gethostbyaddr
host (most likely containing only a single address). To find the fully qualified domain name, use the function :func:`getfqdn`. :func:`gethostbyaddr` supports both IPv4 and IPv6. .. audit-event:: socket.gethostbyaddr ip_address socket.gethostbyaddr
python, official-docs, cpython, P0
Local_Trusted_Corpus
ea9ebe78-7591-4c11-80bf-44bef76aba48
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,670
supabase-export-v2
18c3720480465ebb
.. function:: getnameinfo(sockaddr, flags) Translate a socket address *sockaddr* into a 2-tuple ``(host, port)``. Depending on the settings of *flags*, the result can contain a fully qualified domain name or numeric address representation in *host*. Similarly, *port* can contain a string port name or a numeric port ...
trusted_official_docs
CPython Docs
.. function:: getnameinfo(sockaddr, flags) Translate a socket address *sockaddr* into a 2-tuple ``(host, port)``. Depending on the settings of *flags*, the result can contain a fully qualified domain name or numeric address representation in *host*. Similarly, *port* can contain a string port name or a numeric port ...
.. function:: getnameinfo(sockaddr, flags) Translate a socket address *sockaddr* into a 2-tuple ``(host, port)``. Depending on the settings of *flags*, the result can contain a fully qualified domain name or numeric address representation in *host*. Similarly, *port* can contain a string port name or a numeric port ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ec30ab67-e857-4a96-81d0-5c791540f5aa
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,531
supabase-export-v2
907a8f4908078f6f
.. data:: BDADDR_ANY BDADDR_LOCAL These are string constants containing Bluetooth addresses with special meanings. For example, :const:`BDADDR_ANY` can be used to indicate any address when specifying the binding socket with :const:`BTPROTO_RFCOMM`.
trusted_official_docs
CPython Docs
.. data:: BDADDR_ANY BDADDR_LOCAL These are string constants containing Bluetooth addresses with special meanings. For example, :const:`BDADDR_ANY` can be used to indicate any address when specifying the binding socket with :const:`BTPROTO_RFCOMM`.
.. data:: BDADDR_ANY BDADDR_LOCAL These are string constants containing Bluetooth addresses with special meanings. For example, :const:`BDADDR_ANY` can be used to indicate any address when specifying the binding socket with :const:`BTPROTO_RFCOMM`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
edde98c0-a070-4821-811a-bc2203c87f42
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,399
supabase-export-v2
9fcf96e3493f8953
.. versionchanged:: 3.14 FreeBSD support added. - :const:`AF_ALG` is a Linux-only socket based interface to Kernel cryptography. An algorithm socket is configured with a tuple of two to four elements ``(type, name [, feat [, mask]])``, where:
trusted_official_docs
CPython Docs
.. versionchanged:: 3.14 FreeBSD support added. - :const:`AF_ALG` is a Linux-only socket based interface to Kernel cryptography. An algorithm socket is configured with a tuple of two to four elements ``(type, name [, feat [, mask]])``, where:
.. versionchanged:: 3.14 FreeBSD support added. - :const:`AF_ALG` is a Linux-only socket based interface to Kernel cryptography. An algorithm socket is configured with a tuple of two to four elements ``(type, name [, feat [, mask]])``, where:
python, official-docs, cpython, P0
Local_Trusted_Corpus
f3d0adc1-47a9-4183-bc2b-37ee62732baf
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,833
supabase-export-v2
8bbff2c8b2f6a138
.. index:: single: I/O control; buffering Return a :term:`file object` associated with the socket. The exact returned type depends on the arguments given to :meth:`makefile`. These arguments are interpreted the same way as by the built-in :func:`open` function, except the only supported *mode* values are ``'r'`` (de...
trusted_official_docs
CPython Docs
.. index:: single: I/O control; buffering Return a :term:`file object` associated with the socket. The exact returned type depends on the arguments given to :meth:`makefile`. These arguments are interpreted the same way as by the built-in :func:`open` function, except the only supported *mode* values are ``'r'`` (de...
.. index:: single: I/O control; buffering Return a :term:`file object` associated with the socket. The exact returned type depends on the arguments given to :meth:`makefile`. These arguments are interpreted the same way as by the built-in :func:`open` function, except the only supported *mode* values are ``'r'`` (de...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f4df22bc-cf97-49e8-9666-f2b5a3727ddd
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,371
supabase-export-v2
72a508b61d7501ca
deal with both types of address. A string or bytes-like object can be used for either type of address when passing it as an argument. .. versionchanged:: 3.3 Previously, :const:`AF_UNIX` socket paths were assumed to use UTF-8 encoding.
trusted_official_docs
CPython Docs
deal with both types of address. A string or bytes-like object can be used for either type of address when passing it as an argument. .. versionchanged:: 3.3 Previously, :const:`AF_UNIX` socket paths were assumed to use UTF-8 encoding.
deal with both types of address. A string or bytes-like object can be used for either type of address when passing it as an argument. .. versionchanged:: 3.3 Previously, :const:`AF_UNIX` socket paths were assumed to use UTF-8 encoding.
python, official-docs, cpython, P0
Local_Trusted_Corpus
f54b96e9-4ee1-45b8-a4c3-c4dc7fa8ce03
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,783
supabase-export-v2
7576325fd1b51152
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. .. versionchanged:: 3.6 :exc:`OSError` is now raised if an error occurs when the underlying :c:func:`close` call is made.
trusted_official_docs
CPython Docs
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. .. versionchanged:: 3.6 :exc:`OSError` is now raised if an error occurs when the underlying :c:func:`close` call is made.
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. .. versionchanged:: 3.6 :exc:`OSError` is now raised if an error occurs when the underlying :c:func:`close` call is made.
python, official-docs, cpython, P0
Local_Trusted_Corpus
f6c2d021-c6b1-43bd-a5e1-9db25c672465
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,781
supabase-export-v2
c5d7c2995369a669
.. method:: socket.close() Mark the socket closed. The underlying system resource (e.g. a file descriptor) is also closed when all file objects from :meth:`makefile` are closed. Once that happens, all future operations on the socket object will fail. The remote end will receive no more data (after queued data is fl...
trusted_official_docs
CPython Docs
.. method:: socket.close() Mark the socket closed. The underlying system resource (e.g. a file descriptor) is also closed when all file objects from :meth:`makefile` are closed. Once that happens, all future operations on the socket object will fail. The remote end will receive no more data (after queued data is fl...
.. method:: socket.close() Mark the socket closed. The underlying system resource (e.g. a file descriptor) is also closed when all file objects from :meth:`makefile` are closed. Once that happens, all future operations on the socket object will fail. The remote end will receive no more data (after queued data is fl...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f8791a9c-b88e-439c-8104-bdac24eb05f7
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,874
supabase-export-v2
86c5a5acef428210
has the same meaning as for :meth:`recv`. Return the number of bytes sent. The format of *address* depends on the address family --- see :ref:`socket-addresses`. .. audit-event:: socket.sendto self,address socket.socket.sendto
trusted_official_docs
CPython Docs
has the same meaning as for :meth:`recv`. Return the number of bytes sent. The format of *address* depends on the address family --- see :ref:`socket-addresses`. .. audit-event:: socket.sendto self,address socket.socket.sendto
has the same meaning as for :meth:`recv`. Return the number of bytes sent. The format of *address* depends on the address family --- see :ref:`socket-addresses`. .. audit-event:: socket.sendto self,address socket.socket.sendto
python, official-docs, cpython, P0
Local_Trusted_Corpus
f8e5a8a9-241f-4220-9d9d-16d87feb98e4
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,389
supabase-export-v2
4f1d574821380ce7
- :const:`BTPROTO_L2CAP` accepts a tuple ``(bdaddr, psm[, cid[, bdaddr_type]])`` where: - ``bdaddr`` is a string specifying the Bluetooth address. - ``psm`` is an integer specifying the Protocol/Service Multiplexer. - ``cid`` is an optional integer specifying the Channel Identifier. If not given, defaults to zero. - ``...
trusted_official_docs
CPython Docs
- :const:`BTPROTO_L2CAP` accepts a tuple ``(bdaddr, psm[, cid[, bdaddr_type]])`` where: - ``bdaddr`` is a string specifying the Bluetooth address. - ``psm`` is an integer specifying the Protocol/Service Multiplexer. - ``cid`` is an optional integer specifying the Channel Identifier. If not given, defaults to zero. - ``...
- :const:`BTPROTO_L2CAP` accepts a tuple ``(bdaddr, psm[, cid[, bdaddr_type]])`` where: - ``bdaddr`` is a string specifying the Bluetooth address. - ``psm`` is an integer specifying the Protocol/Service Multiplexer. - ``cid`` is an optional integer specifying the Channel Identifier. If not given, defaults to zero. - ``...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f96ecbbf-62a0-47ea-924e-ac57ff242540
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,876
supabase-export-v2
9bea720b3408c039
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.sendmsg(buffers[, ancdata[, 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.sendmsg(buffers[, ancdata[, 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.sendmsg(buffers[, ancdata[, flags[, address]]])
python, official-docs, cpython, P0
Local_Trusted_Corpus
f9dde7bc-78b5-4273-bc2c-167bd0cffa75
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,770
supabase-export-v2
99f59a0058258e11
Socket objects have the following methods. Except for :meth:`~socket.makefile`, these correspond to Unix system calls applicable to sockets. .. versionchanged:: 3.2 Support for the :term:`context manager` protocol was added. Exiting the context manager is equivalent to calling :meth:`~socket.close`.
trusted_official_docs
CPython Docs
Socket objects have the following methods. Except for :meth:`~socket.makefile`, these correspond to Unix system calls applicable to sockets. .. versionchanged:: 3.2 Support for the :term:`context manager` protocol was added. Exiting the context manager is equivalent to calling :meth:`~socket.close`.
Socket objects have the following methods. Except for :meth:`~socket.makefile`, these correspond to Unix system calls applicable to sockets. .. versionchanged:: 3.2 Support for the :term:`context manager` protocol was added. Exiting the context manager is equivalent to calling :meth:`~socket.close`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
fb2e7787-7de2-4c18-90df-a6c4d2dc8e93
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,421
supabase-export-v2
2c965706e9c8a2a7
for communicating with Hyper-V hosts and guests. The address family is represented as a ``(vm_id, service_id)`` tuple where the ``vm_id`` and ``service_id`` are UUID strings. The ``vm_id`` is the virtual machine identifier or a set of known VMID values if the target is not a specific virtual machine. Known VMID consta...
trusted_official_docs
CPython Docs
for communicating with Hyper-V hosts and guests. The address family is represented as a ``(vm_id, service_id)`` tuple where the ``vm_id`` and ``service_id`` are UUID strings. The ``vm_id`` is the virtual machine identifier or a set of known VMID values if the target is not a specific virtual machine. Known VMID consta...
for communicating with Hyper-V hosts and guests. The address family is represented as a ``(vm_id, service_id)`` tuple where the ``vm_id`` and ``service_id`` are UUID strings. The ``vm_id`` is the virtual machine identifier or a set of known VMID values if the target is not a specific virtual machine. Known VMID consta...
python, official-docs, cpython, P0
Local_Trusted_Corpus
fd1dd5ff-777d-4e1b-af05-b36ba21cf378
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,788
supabase-export-v2
534e220bc7ae2f8a
Connect to a remote socket at *address*. The format of *address* depends on the address family --- see :ref:`socket-addresses`. If the connection is interrupted by a signal, the method waits until the connection completes, or raises a :exc:`TimeoutError` on timeout, if the signal handler doesn't raise an exception an...
trusted_official_docs
CPython Docs
Connect to a remote socket at *address*. The format of *address* depends on the address family --- see :ref:`socket-addresses`. If the connection is interrupted by a signal, the method waits until the connection completes, or raises a :exc:`TimeoutError` on timeout, if the signal handler doesn't raise an exception an...
Connect to a remote socket at *address*. The format of *address* depends on the address family --- see :ref:`socket-addresses`. If the connection is interrupted by a signal, the method waits until the connection completes, or raises a :exc:`TimeoutError` on timeout, if the signal handler doesn't raise an exception an...
python, official-docs, cpython, P0
Local_Trusted_Corpus
fd51ee45-0564-4af6-93c4-45398e51c54a
CPython Docs
file://datasets/cpython/Doc/library/socket.rst
unknown
84de57a2-f2b8-438d-a0a4-5acc38e81ff6
47,759
supabase-export-v2
b2dc5f102cd6d422
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. .. availability:: Unix, not WASI.
trusted_official_docs
CPython Docs
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. .. availability:: Unix, not WASI.
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. .. availability:: Unix, not WASI.
python, official-docs, cpython, P0
Local_Trusted_Corpus
006919f7-c65e-4d20-8ccc-4fccce51c672
CPython Docs
file://datasets/cpython/Doc/library/ftplib.rst
unknown
727d49e3-768f-4dad-92bf-2b2bf4efaf10
48,103
supabase-export-v2
7e015a35cd260f15
:param timeout: A timeout in seconds for blocking operations like :meth:`~FTP.connect` (default: the global default timeout setting). :type timeout: float | None :param source_address: |param_doc_source_address| :type source_address: tuple | None
trusted_official_docs
CPython Docs
:param timeout: A timeout in seconds for blocking operations like :meth:`~FTP.connect` (default: the global default timeout setting). :type timeout: float | None :param source_address: |param_doc_source_address| :type source_address: tuple | None
:param timeout: A timeout in seconds for blocking operations like :meth:`~FTP.connect` (default: the global default timeout setting). :type timeout: float | None :param source_address: |param_doc_source_address| :type source_address: tuple | None
python, official-docs, cpython, P0
Local_Trusted_Corpus
013d1367-78d4-4b7b-b3c2-b47c49d7f571
CPython Docs
file://datasets/cpython/Doc/library/ftplib.rst
unknown
727d49e3-768f-4dad-92bf-2b2bf4efaf10
48,092
supabase-export-v2
eb94d25c6fc97abb
.. method:: FTP.close() Close the connection unilaterally. This should not be applied to an already closed connection such as after a successful call to :meth:`~FTP.quit`. After this call the :class:`FTP` instance should not be used any more (after a call to :meth:`close` or :meth:`~FTP.quit` you cannot reopen the c...
trusted_official_docs
CPython Docs
.. method:: FTP.close() Close the connection unilaterally. This should not be applied to an already closed connection such as after a successful call to :meth:`~FTP.quit`. After this call the :class:`FTP` instance should not be used any more (after a call to :meth:`close` or :meth:`~FTP.quit` you cannot reopen the c...
.. method:: FTP.close() Close the connection unilaterally. This should not be applied to an already closed connection such as after a successful call to :meth:`~FTP.quit`. After this call the :class:`FTP` instance should not be used any more (after a call to :meth:`close` or :meth:`~FTP.quit` you cannot reopen the c...
python, official-docs, cpython, P0
Local_Trusted_Corpus
03aeda8f-f72f-4ce3-9437-50f09fe8ffca
CPython Docs
file://datasets/cpython/Doc/library/ftplib.rst
unknown
727d49e3-768f-4dad-92bf-2b2bf4efaf10
48,058
supabase-export-v2
64fec9764daa7e51
:param int rest: A ``REST`` command to be sent to the server. See the documentation for the *rest* parameter of the :meth:`transfercmd` method. .. versionchanged:: 3.2 The *rest* parameter was added.
trusted_official_docs
CPython Docs
:param int rest: A ``REST`` command to be sent to the server. See the documentation for the *rest* parameter of the :meth:`transfercmd` method. .. versionchanged:: 3.2 The *rest* parameter was added.
:param int rest: A ``REST`` command to be sent to the server. See the documentation for the *rest* parameter of the :meth:`transfercmd` method. .. versionchanged:: 3.2 The *rest* parameter was added.
python, official-docs, cpython, P0
Local_Trusted_Corpus
0acb2cc6-b9b0-4380-962b-6454fec86c65
CPython Docs
file://datasets/cpython/Doc/library/ftplib.rst
unknown
727d49e3-768f-4dad-92bf-2b2bf4efaf10
48,013
supabase-export-v2
5ae45c7c1cd4a88c
to prevent the creation of a non-blocking socket. The *encoding* parameter was added, and the default was changed from Latin-1 to UTF-8 to follow :rfc:`2640`. Several :class:`!FTP` methods are available in two flavors: one for handling text files and another for binary files. The methods are named for the command whic...
trusted_official_docs
CPython Docs
to prevent the creation of a non-blocking socket. The *encoding* parameter was added, and the default was changed from Latin-1 to UTF-8 to follow :rfc:`2640`. Several :class:`!FTP` methods are available in two flavors: one for handling text files and another for binary files. The methods are named for the command whic...
to prevent the creation of a non-blocking socket. The *encoding* parameter was added, and the default was changed from Latin-1 to UTF-8 to follow :rfc:`2640`. Several :class:`!FTP` methods are available in two flavors: one for handling text files and another for binary files. The methods are named for the command whic...
python, official-docs, cpython, P0
Local_Trusted_Corpus
0fa11f44-81bb-4f69-a886-45041574483c
CPython Docs
file://datasets/cpython/Doc/library/ftplib.rst
unknown
727d49e3-768f-4dad-92bf-2b2bf4efaf10
48,102
supabase-export-v2
88202c4a2707c0ec
which allows bundling SSL configuration options, certificates and private keys into a single, potentially long-lived, structure. Please read :ref:`ssl-security` for best practices. :type context: :class:`ssl.SSLContext` :param timeout: A timeout in seconds for blocking operations like :meth:`~FTP.connect` (default: t...
trusted_official_docs
CPython Docs
which allows bundling SSL configuration options, certificates and private keys into a single, potentially long-lived, structure. Please read :ref:`ssl-security` for best practices. :type context: :class:`ssl.SSLContext` :param timeout: A timeout in seconds for blocking operations like :meth:`~FTP.connect` (default: t...
which allows bundling SSL configuration options, certificates and private keys into a single, potentially long-lived, structure. Please read :ref:`ssl-security` for best practices. :type context: :class:`ssl.SSLContext` :param timeout: A timeout in seconds for blocking operations like :meth:`~FTP.connect` (default: t...
python, official-docs, cpython, P0
Local_Trusted_Corpus
12eb736f-1abd-46f9-9f45-acb1097cb320
CPython Docs
file://datasets/cpython/Doc/library/ftplib.rst
unknown
727d49e3-768f-4dad-92bf-2b2bf4efaf10
48,020
supabase-export-v2
993d7d82e0750d2a
*host* argument was given when the :class:`FTP` instance was created. All other :class:`!FTP` methods can only be called after a connection has successfully been made. :param str host: The host to connect to.
trusted_official_docs
CPython Docs
*host* argument was given when the :class:`FTP` instance was created. All other :class:`!FTP` methods can only be called after a connection has successfully been made. :param str host: The host to connect to.
*host* argument was given when the :class:`FTP` instance was created. All other :class:`!FTP` methods can only be called after a connection has successfully been made. :param str host: The host to connect to.
python, official-docs, cpython, P0
Local_Trusted_Corpus
276dbbab-5564-4dde-9f2c-dadbb50eecd2
CPython Docs
file://datasets/cpython/Doc/library/ftplib.rst
unknown
727d49e3-768f-4dad-92bf-2b2bf4efaf10
48,029
supabase-export-v2
38a9be8befbffa4d
.. method:: FTP.login(user='anonymous', passwd='', acct='') Log on to the connected FTP server. This function should be called only once for each instance, after a connection has been established; it should not be called if the *host* and *user* arguments were given when the :class:`FTP` instance was created. Most F...
trusted_official_docs
CPython Docs
.. method:: FTP.login(user='anonymous', passwd='', acct='') Log on to the connected FTP server. This function should be called only once for each instance, after a connection has been established; it should not be called if the *host* and *user* arguments were given when the :class:`FTP` instance was created. Most F...
.. method:: FTP.login(user='anonymous', passwd='', acct='') Log on to the connected FTP server. This function should be called only once for each instance, after a connection has been established; it should not be called if the *host* and *user* arguments were given when the :class:`FTP` instance was created. Most F...
python, official-docs, cpython, P0
Local_Trusted_Corpus
29173389-9479-4d3e-99f8-bad1cfdbf457
CPython Docs
file://datasets/cpython/Doc/library/ftplib.rst
unknown
727d49e3-768f-4dad-92bf-2b2bf4efaf10
48,045
supabase-export-v2
7dee3431c6c9c642
A single parameter callable that is called for each block of data received, with its single argument being the data as :class:`bytes`. :type callback: :term:`callable` :param int blocksize: The maximum chunk size to read on the low-level :class:`~socket.socket` object created to do the actual transfer. This also corr...
trusted_official_docs
CPython Docs
A single parameter callable that is called for each block of data received, with its single argument being the data as :class:`bytes`. :type callback: :term:`callable` :param int blocksize: The maximum chunk size to read on the low-level :class:`~socket.socket` object created to do the actual transfer. This also corr...
A single parameter callable that is called for each block of data received, with its single argument being the data as :class:`bytes`. :type callback: :term:`callable` :param int blocksize: The maximum chunk size to read on the low-level :class:`~socket.socket` object created to do the actual transfer. This also corr...
python, official-docs, cpython, P0
Local_Trusted_Corpus
29882484-1d2c-4b89-a3af-61bf5f72cee0
CPython Docs
file://datasets/cpython/Doc/library/ftplib.rst
unknown
727d49e3-768f-4dad-92bf-2b2bf4efaf10
48,117
supabase-export-v2
00d5b2a20a556f94
.. method:: FTP_TLS.ccc() Revert control channel back to plaintext. This can be useful to take advantage of firewalls that know how to handle NAT with non-secure FTP without opening fixed ports.
trusted_official_docs
CPython Docs
.. method:: FTP_TLS.ccc() Revert control channel back to plaintext. This can be useful to take advantage of firewalls that know how to handle NAT with non-secure FTP without opening fixed ports.
.. method:: FTP_TLS.ccc() Revert control channel back to plaintext. This can be useful to take advantage of firewalls that know how to handle NAT with non-secure FTP without opening fixed ports.
python, official-docs, cpython, P0
Local_Trusted_Corpus
2de6a80b-c45d-4b34-9b92-a97d5022291d
CPython Docs
file://datasets/cpython/Doc/library/ftplib.rst
unknown
727d49e3-768f-4dad-92bf-2b2bf4efaf10
47,987
supabase-export-v2
7e8df33f51beeee6
It is also used by the module :mod:`urllib.request` to handle URLs that use FTP. For more information on FTP (File Transfer Protocol), see internet :rfc:`959`. The default encoding is UTF-8, following :rfc:`2640`.
trusted_official_docs
CPython Docs
It is also used by the module :mod:`urllib.request` to handle URLs that use FTP. For more information on FTP (File Transfer Protocol), see internet :rfc:`959`. The default encoding is UTF-8, following :rfc:`2640`.
It is also used by the module :mod:`urllib.request` to handle URLs that use FTP. For more information on FTP (File Transfer Protocol), see internet :rfc:`959`. The default encoding is UTF-8, following :rfc:`2640`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
2e2d10ee-d13c-4bdb-91f6-b98fcd72d572
CPython Docs
file://datasets/cpython/Doc/library/ftplib.rst
unknown
727d49e3-768f-4dad-92bf-2b2bf4efaf10
48,133
supabase-export-v2
378fe9be4a1dfe0b
.. data:: all_errors The set of all exceptions (as a tuple) that methods of :class:`FTP` instances may raise as a result of problems with the FTP connection (as opposed to programming errors made by the caller). This set includes the four exceptions listed above as well as :exc:`OSError` and :exc:`EOFError`.
trusted_official_docs
CPython Docs
.. data:: all_errors The set of all exceptions (as a tuple) that methods of :class:`FTP` instances may raise as a result of problems with the FTP connection (as opposed to programming errors made by the caller). This set includes the four exceptions listed above as well as :exc:`OSError` and :exc:`EOFError`.
.. data:: all_errors The set of all exceptions (as a tuple) that methods of :class:`FTP` instances may raise as a result of problems with the FTP connection (as opposed to programming errors made by the caller). This set includes the four exceptions listed above as well as :exc:`OSError` and :exc:`EOFError`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
2e3b2a1e-165d-4171-b6aa-3114fde6235a
CPython Docs
file://datasets/cpython/Doc/library/ftplib.rst
unknown
727d49e3-768f-4dad-92bf-2b2bf4efaf10
48,131
supabase-export-v2
93f075f9cae51050
.. exception:: error_proto Exception raised when a reply is received from the server that does not fit the response specifications of the File Transfer Protocol, i.e. begin with a digit in the range 1--5.
trusted_official_docs
CPython Docs
.. exception:: error_proto Exception raised when a reply is received from the server that does not fit the response specifications of the File Transfer Protocol, i.e. begin with a digit in the range 1--5.
.. exception:: error_proto Exception raised when a reply is received from the server that does not fit the response specifications of the File Transfer Protocol, i.e. begin with a digit in the range 1--5.
python, official-docs, cpython, P0
Local_Trusted_Corpus
2edd22da-d0e0-4e0b-8b9c-5f1df18782fc
CPython Docs
file://datasets/cpython/Doc/library/ftplib.rst
unknown
727d49e3-768f-4dad-92bf-2b2bf4efaf10
48,065
supabase-export-v2
aaa79961feec9150
.. method:: FTP.ntransfercmd(cmd, rest=None) Like :meth:`transfercmd`, but returns a tuple of the data connection and the expected size of the data. If the expected size could not be computed, ``None`` will be returned as the expected size. *cmd* and *rest* means the same thing as in :meth:`transfercmd`.
trusted_official_docs
CPython Docs
.. method:: FTP.ntransfercmd(cmd, rest=None) Like :meth:`transfercmd`, but returns a tuple of the data connection and the expected size of the data. If the expected size could not be computed, ``None`` will be returned as the expected size. *cmd* and *rest* means the same thing as in :meth:`transfercmd`.
.. method:: FTP.ntransfercmd(cmd, rest=None) Like :meth:`transfercmd`, but returns a tuple of the data connection and the expected size of the data. If the expected size could not be computed, ``None`` will be returned as the expected size. *cmd* and *rest* means the same thing as in :meth:`transfercmd`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
33366cb2-0394-4978-b515-884d7f422436
CPython Docs
file://datasets/cpython/Doc/library/ftplib.rst
unknown
727d49e3-768f-4dad-92bf-2b2bf4efaf10
48,010
supabase-export-v2
403a7f8815394edf
ftp 154 May 6 10:43 .. dr-xr-xr-x 5 ftp ftp 4096 May 6 10:43 CentOS dr-xr-xr-x 3 ftp ftp 18 Jul 10 2008 Fedora >>> .. versionchanged:: 3.2 Support for the :keyword:`with` statement was added.
trusted_official_docs
CPython Docs
ftp 154 May 6 10:43 .. dr-xr-xr-x 5 ftp ftp 4096 May 6 10:43 CentOS dr-xr-xr-x 3 ftp ftp 18 Jul 10 2008 Fedora >>> .. versionchanged:: 3.2 Support for the :keyword:`with` statement was added.
ftp 154 May 6 10:43 .. dr-xr-xr-x 5 ftp ftp 4096 May 6 10:43 CentOS dr-xr-xr-x 3 ftp ftp 18 Jul 10 2008 Fedora >>> .. versionchanged:: 3.2 Support for the :keyword:`with` statement was added.
python, official-docs, cpython, P0
Local_Trusted_Corpus
3a5f668a-2dc5-4c14-9b10-ab73127e611c
CPython Docs
file://datasets/cpython/Doc/library/ftplib.rst
unknown
727d49e3-768f-4dad-92bf-2b2bf4efaf10
48,056
supabase-export-v2
596f1aea44a1951b
:param int blocksize: The read block size. Defaults to ``8192``. :param callback: A single parameter callable that is called for each block of data sent, with its single argument being the data as :class:`bytes`. :type callback: :term:`callable`
trusted_official_docs
CPython Docs
:param int blocksize: The read block size. Defaults to ``8192``. :param callback: A single parameter callable that is called for each block of data sent, with its single argument being the data as :class:`bytes`. :type callback: :term:`callable`
:param int blocksize: The read block size. Defaults to ``8192``. :param callback: A single parameter callable that is called for each block of data sent, with its single argument being the data as :class:`bytes`. :type callback: :term:`callable`
python, official-docs, cpython, P0
Local_Trusted_Corpus
3c3d70c0-baa5-42df-a659-36f0cdef5dee
CPython Docs
file://datasets/cpython/Doc/library/ftplib.rst
unknown
727d49e3-768f-4dad-92bf-2b2bf4efaf10
48,097
supabase-export-v2
e2ec6daa568caee2
.. note:: The user must explicitly secure the data connection by calling the :meth:`prot_p` method. :param str host: The hostname to connect to. If given, :code:`connect(host)` is implicitly called by the constructor.
trusted_official_docs
CPython Docs
.. note:: The user must explicitly secure the data connection by calling the :meth:`prot_p` method. :param str host: The hostname to connect to. If given, :code:`connect(host)` is implicitly called by the constructor.
.. note:: The user must explicitly secure the data connection by calling the :meth:`prot_p` method. :param str host: The hostname to connect to. If given, :code:`connect(host)` is implicitly called by the constructor.
python, official-docs, cpython, P0
Local_Trusted_Corpus
3d0d39a6-42d3-42c6-a8b1-80eea32266c1
CPython Docs
file://datasets/cpython/Doc/library/ftplib.rst
unknown
727d49e3-768f-4dad-92bf-2b2bf4efaf10
48,101
supabase-export-v2
06b0f310747c83fd
:param str acct: |param_doc_acct| :param context: An SSL context object which allows bundling SSL configuration options, certificates and private keys into a single, potentially long-lived, structure. Please read :ref:`ssl-security` for best practices. :type context: :class:`ssl.SSLContext`
trusted_official_docs
CPython Docs
:param str acct: |param_doc_acct| :param context: An SSL context object which allows bundling SSL configuration options, certificates and private keys into a single, potentially long-lived, structure. Please read :ref:`ssl-security` for best practices. :type context: :class:`ssl.SSLContext`
:param str acct: |param_doc_acct| :param context: An SSL context object which allows bundling SSL configuration options, certificates and private keys into a single, potentially long-lived, structure. Please read :ref:`ssl-security` for best practices. :type context: :class:`ssl.SSLContext`
python, official-docs, cpython, P0
Local_Trusted_Corpus
476a74b4-f288-49fa-97fe-cf83d0432024
CPython Docs
file://datasets/cpython/Doc/library/ftplib.rst
unknown
727d49e3-768f-4dad-92bf-2b2bf4efaf10
48,062
supabase-export-v2
fefcc4abcefa9978
.. method:: FTP.transfercmd(cmd, rest=None) Initiate a transfer over the data connection. If the transfer is active, send an ``EPRT`` or ``PORT`` command and the transfer command specified by *cmd*, and accept the connection. If the server is passive, send an ``EPSV`` or ``PASV`` command, connect to it, and start th...
trusted_official_docs
CPython Docs
.. method:: FTP.transfercmd(cmd, rest=None) Initiate a transfer over the data connection. If the transfer is active, send an ``EPRT`` or ``PORT`` command and the transfer command specified by *cmd*, and accept the connection. If the server is passive, send an ``EPSV`` or ``PASV`` command, connect to it, and start th...
.. method:: FTP.transfercmd(cmd, rest=None) Initiate a transfer over the data connection. If the transfer is active, send an ``EPRT`` or ``PORT`` command and the transfer command specified by *cmd*, and accept the connection. If the server is passive, send an ``EPSV`` or ``PASV`` command, connect to it, and start th...
python, official-docs, cpython, P0
Local_Trusted_Corpus
4a2ddb9a-fe07-4025-8e60-76b274fdb359
CPython Docs
file://datasets/cpython/Doc/library/ftplib.rst
unknown
727d49e3-768f-4dad-92bf-2b2bf4efaf10
48,048
supabase-export-v2
e8634ed7b5182971
.. method:: FTP.retrlines(cmd, callback=None) Retrieve a file or directory listing in the encoding specified by the *encoding* parameter at initialization. *cmd* should be an appropriate ``RETR`` command (see :meth:`retrbinary`) or a command such as ``LIST`` or ``NLST`` (usually just the string ``'LIST'``). ``LIST`` ...
trusted_official_docs
CPython Docs
.. method:: FTP.retrlines(cmd, callback=None) Retrieve a file or directory listing in the encoding specified by the *encoding* parameter at initialization. *cmd* should be an appropriate ``RETR`` command (see :meth:`retrbinary`) or a command such as ``LIST`` or ``NLST`` (usually just the string ``'LIST'``). ``LIST`` ...
.. method:: FTP.retrlines(cmd, callback=None) Retrieve a file or directory listing in the encoding specified by the *encoding* parameter at initialization. *cmd* should be an appropriate ``RETR`` command (see :meth:`retrbinary`) or a command such as ``LIST`` or ``NLST`` (usually just the string ``'LIST'``). ``LIST`` ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
4c6ad713-0faf-4bc9-aee1-07dae57ac0ba
CPython Docs
file://datasets/cpython/Doc/library/ftplib.rst
unknown
727d49e3-768f-4dad-92bf-2b2bf4efaf10
48,021
supabase-export-v2
745071e9551956f0
:param str host: The host to connect to. :param int port: The TCP port to connect to (default: ``21``, as specified by the FTP protocol specification). It is rarely needed to specify a different port number.
trusted_official_docs
CPython Docs
:param str host: The host to connect to. :param int port: The TCP port to connect to (default: ``21``, as specified by the FTP protocol specification). It is rarely needed to specify a different port number.
:param str host: The host to connect to. :param int port: The TCP port to connect to (default: ``21``, as specified by the FTP protocol specification). It is rarely needed to specify a different port number.
python, official-docs, cpython, P0
Local_Trusted_Corpus
4fe432b6-fb97-4a62-8871-1c8589ee65e2
CPython Docs
file://datasets/cpython/Doc/library/ftplib.rst
unknown
727d49e3-768f-4dad-92bf-2b2bf4efaf10
48,022
supabase-export-v2
46d4ead177daaa17
The TCP port to connect to (default: ``21``, as specified by the FTP protocol specification). It is rarely needed to specify a different port number. :param timeout: A timeout in seconds for the connection attempt (default: the global default timeout setting). :type timeout: float | None
trusted_official_docs
CPython Docs
The TCP port to connect to (default: ``21``, as specified by the FTP protocol specification). It is rarely needed to specify a different port number. :param timeout: A timeout in seconds for the connection attempt (default: the global default timeout setting). :type timeout: float | None
The TCP port to connect to (default: ``21``, as specified by the FTP protocol specification). It is rarely needed to specify a different port number. :param timeout: A timeout in seconds for the connection attempt (default: the global default timeout setting). :type timeout: float | None
python, official-docs, cpython, P0
Local_Trusted_Corpus
53203f8f-6660-42c4-b59a-9c84f61e29ff
CPython Docs
file://datasets/cpython/Doc/library/ftplib.rst
unknown
727d49e3-768f-4dad-92bf-2b2bf4efaf10
48,057
supabase-export-v2
0ecd51077573b62b
A single parameter callable that is called for each block of data sent, with its single argument being the data as :class:`bytes`. :type callback: :term:`callable` :param int rest: A ``REST`` command to be sent to the server. See the documentation for the *rest* parameter of the :meth:`transfercmd` method.
trusted_official_docs
CPython Docs
A single parameter callable that is called for each block of data sent, with its single argument being the data as :class:`bytes`. :type callback: :term:`callable` :param int rest: A ``REST`` command to be sent to the server. See the documentation for the *rest* parameter of the :meth:`transfercmd` method.
A single parameter callable that is called for each block of data sent, with its single argument being the data as :class:`bytes`. :type callback: :term:`callable` :param int rest: A ``REST`` command to be sent to the server. See the documentation for the *rest* parameter of the :meth:`transfercmd` method.
python, official-docs, cpython, P0
Local_Trusted_Corpus
5864406c-ae82-4c17-86e7-51970ab1c866
CPython Docs
file://datasets/cpython/Doc/library/ftplib.rst
unknown
727d49e3-768f-4dad-92bf-2b2bf4efaf10
47,997
supabase-export-v2
d05fe8b9cfc220e5
.. |param_doc_acct| replace:: Account information to be used for the ``ACCT`` FTP command. Few systems implement this. See `RFC-959 <https://datatracker.ietf.org/doc/html/rfc959.html>`__ for more details. .. |param_doc_source_address| replace:: A 2-tuple ``(host, port)`` for the socket to bind to as its source addres...
trusted_official_docs
CPython Docs
.. |param_doc_acct| replace:: Account information to be used for the ``ACCT`` FTP command. Few systems implement this. See `RFC-959 <https://datatracker.ietf.org/doc/html/rfc959.html>`__ for more details. .. |param_doc_source_address| replace:: A 2-tuple ``(host, port)`` for the socket to bind to as its source addres...
.. |param_doc_acct| replace:: Account information to be used for the ``ACCT`` FTP command. Few systems implement this. See `RFC-959 <https://datatracker.ietf.org/doc/html/rfc959.html>`__ for more details. .. |param_doc_source_address| replace:: A 2-tuple ``(host, port)`` for the socket to bind to as its source addres...
python, official-docs, cpython, P0
Local_Trusted_Corpus
5abca772-72cc-42f0-a95a-52319de18ce8
CPython Docs
file://datasets/cpython/Doc/library/ftplib.rst
unknown
727d49e3-768f-4dad-92bf-2b2bf4efaf10
48,074
supabase-export-v2
975c588b73aa2439
the last argument is a function, it is used as a *callback* function as for :meth:`retrlines`; the default prints to :data:`sys.stdout`. This method returns ``None``. .. note:: If your server supports the command, :meth:`mlsd` offers a better API.
trusted_official_docs
CPython Docs
the last argument is a function, it is used as a *callback* function as for :meth:`retrlines`; the default prints to :data:`sys.stdout`. This method returns ``None``. .. note:: If your server supports the command, :meth:`mlsd` offers a better API.
the last argument is a function, it is used as a *callback* function as for :meth:`retrlines`; the default prints to :data:`sys.stdout`. This method returns ``None``. .. note:: If your server supports the command, :meth:`mlsd` offers a better API.
python, official-docs, cpython, P0
Local_Trusted_Corpus
5eef1fb2-6a45-4696-a84e-8426427aedf8
CPython Docs
file://datasets/cpython/Doc/library/ftplib.rst
unknown
727d49e3-768f-4dad-92bf-2b2bf4efaf10
48,111
supabase-export-v2
3768f125963f831b
Here's a sample session using the :class:`FTP_TLS` class:: >>> ftps = FTP_TLS('ftp.pureftpd.org') >>> ftps.login() '230 Anonymous user logged in' >>> ftps.prot_p() '200 Data protection level set to "private"' >>> ftps.nlst() ['6jack', 'OpenBSD', 'antilink', 'blogbench', 'bsdcam', 'clockspeed', 'djbdns-jedi', 'doc...
trusted_official_docs
CPython Docs
Here's a sample session using the :class:`FTP_TLS` class:: >>> ftps = FTP_TLS('ftp.pureftpd.org') >>> ftps.login() '230 Anonymous user logged in' >>> ftps.prot_p() '200 Data protection level set to "private"' >>> ftps.nlst() ['6jack', 'OpenBSD', 'antilink', 'blogbench', 'bsdcam', 'clockspeed', 'djbdns-jedi', 'doc...
Here's a sample session using the :class:`FTP_TLS` class:: >>> ftps = FTP_TLS('ftp.pureftpd.org') >>> ftps.login() '230 Anonymous user logged in' >>> ftps.prot_p() '200 Data protection level set to "private"' >>> ftps.nlst() ['6jack', 'OpenBSD', 'antilink', 'blogbench', 'bsdcam', 'clockspeed', 'djbdns-jedi', 'doc...
python, official-docs, cpython, P0
Local_Trusted_Corpus
66f550e6-3135-4de8-b36f-393bbb8b6889
CPython Docs
file://datasets/cpython/Doc/library/ftplib.rst
unknown
727d49e3-768f-4dad-92bf-2b2bf4efaf10
48,096
supabase-export-v2
5d8b0ea9ae697f80
An :class:`FTP` subclass which adds TLS support to FTP as described in :rfc:`4217`. Connect to port 21 implicitly securing the FTP control connection before authenticating. .. note:: The user must explicitly secure the data connection by calling the :meth:`prot_p` method.
trusted_official_docs
CPython Docs
An :class:`FTP` subclass which adds TLS support to FTP as described in :rfc:`4217`. Connect to port 21 implicitly securing the FTP control connection before authenticating. .. note:: The user must explicitly secure the data connection by calling the :meth:`prot_p` method.
An :class:`FTP` subclass which adds TLS support to FTP as described in :rfc:`4217`. Connect to port 21 implicitly securing the FTP control connection before authenticating. .. note:: The user must explicitly secure the data connection by calling the :meth:`prot_p` method.
python, official-docs, cpython, P0
Local_Trusted_Corpus
6c7229a3-4283-4f12-8410-18da5fff0c19
CPython Docs
file://datasets/cpython/Doc/library/ftplib.rst
unknown
727d49e3-768f-4dad-92bf-2b2bf4efaf10
48,040
supabase-export-v2
36e3fb3a90c23075
the server and handle the response. Return the response string if the response code corresponds to success (codes in the range 200--299). Raise :exc:`error_reply` otherwise. .. audit-event:: ftplib.sendcmd self,cmd ftplib.FTP.voidcmd
trusted_official_docs
CPython Docs
the server and handle the response. Return the response string if the response code corresponds to success (codes in the range 200--299). Raise :exc:`error_reply` otherwise. .. audit-event:: ftplib.sendcmd self,cmd ftplib.FTP.voidcmd
the server and handle the response. Return the response string if the response code corresponds to success (codes in the range 200--299). Raise :exc:`error_reply` otherwise. .. audit-event:: ftplib.sendcmd self,cmd ftplib.FTP.voidcmd
python, official-docs, cpython, P0
Local_Trusted_Corpus
713e4def-d73f-4414-91f2-f4c0404e4fe5
CPython Docs
file://datasets/cpython/Doc/library/ftplib.rst
unknown
727d49e3-768f-4dad-92bf-2b2bf4efaf10
48,088
supabase-export-v2
1a5f9cd61f1180a7
.. method:: FTP.size(filename) Request the size of the file named *filename* on the server. On success, the size of the file is returned as an integer, otherwise ``None`` is returned. Note that the ``SIZE`` command is not standardized, but is supported by many common server implementations.
trusted_official_docs
CPython Docs
.. method:: FTP.size(filename) Request the size of the file named *filename* on the server. On success, the size of the file is returned as an integer, otherwise ``None`` is returned. Note that the ``SIZE`` command is not standardized, but is supported by many common server implementations.
.. method:: FTP.size(filename) Request the size of the file named *filename* on the server. On success, the size of the file is returned as an integer, otherwise ``None`` is returned. Note that the ``SIZE`` command is not standardized, but is supported by many common server implementations.
python, official-docs, cpython, P0
Local_Trusted_Corpus