]> git.ipfire.org Git - thirdparty/dnspython.git/commit
Add prepend_length to Message.to_wire(). (#1001)
authorBrian Wellington <bwelling@xbill.org>
Fri, 3 Nov 2023 15:12:37 +0000 (08:12 -0700)
committerGitHub <noreply@github.com>
Fri, 3 Nov 2023 15:12:37 +0000 (08:12 -0700)
commit2fdf696ceebffcc99007798bad1dec135b464756
treefad6ec92ee6075ed7284a72bd2f22b5ad849fc14
parentdefa13edf76ccd34591c0b38cfde3b63973c2d4a
Add prepend_length to Message.to_wire(). (#1001)

If a caller passes prepend_length=True, the wire format will include the
2 byte encoded message length before the message itself.  This is useful
for callers planning to send the message over TCP, DoT, and DoQ.
dns/asyncquery.py
dns/message.py
dns/query.py