diff options
author | Paul Hoffman <phoffman@proper.com> | 2021-10-13 12:41:02 -0700 |
---|---|---|
committer | Paul Hoffman <phoffman@proper.com> | 2021-10-13 12:41:02 -0700 |
commit | 6a9649ccef74b42856fb1359ef96c1a456bef0a1 (patch) | |
tree | d3833048bf0c1663cf13974474c73ed0d6b95d65 | |
parent | 380846b2d6b550963d3e117f15abf8da26d18505 (diff) | |
download | dnspython-6a9649ccef74b42856fb1359ef96c1a456bef0a1.tar.gz |
Added "connected" to references to socket.socket.
-rw-r--r-- | dns/query.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dns/query.py b/dns/query.py index 934bf41..d7a642a 100644 --- a/dns/query.py +++ b/dns/query.py @@ -484,7 +484,7 @@ def udp(q, where, timeout=None, port=53, source=None, source_port=0, *raise_on_truncation*, a ``bool``. If ``True``, raise an exception if the TC bit is set. - *sock*, a ``socket.socket``, or ``None``, the socket to use for the + *sock*, a connected ``socket.socket``, or ``None``, the socket to use for the query. If ``None``, the default, a socket is created. Note that if a socket is provided, it must be a nonblocking datagram socket, and the *source* and *source_port* are ignored. @@ -543,12 +543,12 @@ def udp_with_fallback(q, where, timeout=None, port=53, source=None, *ignore_trailing*, a ``bool``. If ``True``, ignore trailing junk at end of the received message. - *udp_sock*, a ``socket.socket``, or ``None``, the socket to use for the + *udp_sock*, a connected ``socket.socket``, or ``None``, the socket to use for the UDP query. If ``None``, the default, a socket is created. Note that if a socket is provided, it must be a nonblocking datagram socket, and the *source* and *source_port* are ignored for the UDP query. - *tcp_sock*, a ``socket.socket``, or ``None``, the socket to use for the + *tcp_sock*, a connected ``socket.socket``, or ``None``, the socket to use for the TCP query. If ``None``, the default, a socket is created. Note that if a socket is provided, it must be a nonblocking connected stream socket, and *where*, *source* and *source_port* are ignored for the TCP @@ -702,7 +702,7 @@ def tcp(q, where, timeout=None, port=53, source=None, source_port=0, *ignore_trailing*, a ``bool``. If ``True``, ignore trailing junk at end of the received message. - *sock*, a ``socket.socket``, or ``None``, the socket to use for the + *sock*, a connected ``socket.socket``, or ``None``, the socket to use for the query. If ``None``, the default, a socket is created. Note that if a socket is provided, it must be a nonblocking connected stream socket, and *where*, *port*, *source* and *source_port* are ignored. |