diff options
author | Bob Halley <halley@dnspython.org> | 2021-10-13 14:34:19 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-13 14:34:19 -0700 |
commit | 46668dc9f1ae7335c9587f1b37abee19a2548c96 (patch) | |
tree | c96b4d7669be930dbfc7b981b4a7060cfb0e04fb | |
parent | 380846b2d6b550963d3e117f15abf8da26d18505 (diff) | |
parent | d9af2d209876b253b5defc0d6642e8c9f1af4c4d (diff) | |
download | dnspython-46668dc9f1ae7335c9587f1b37abee19a2548c96.tar.gz |
Merge pull request #708 from paulehoffman/connected-socket
Added "connected" to references to socket.socket.
-rw-r--r-- | dns/query.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dns/query.py b/dns/query.py index 934bf41..fee5d6a 100644 --- a/dns/query.py +++ b/dns/query.py @@ -548,7 +548,7 @@ def udp_with_fallback(q, where, timeout=None, port=53, source=None, 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 ``socket.socket``, or ``None``, the connected 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 ``socket.socket``, or ``None``, the connected 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. |