MCPcopy Create free account
hub / github.com/rthalley/dnspython / send

Method send

tests/doq.py:59–62  ·  view source on GitHub ↗
(self, datagram: bytes, is_end=False)

Source from the content-addressed store, hash-verified

57 raise dns.exception.Timeout
58
59 async def send(self, datagram: bytes, is_end=False):
60 l = len(datagram)
61 data = struct.pack("!H", l) + datagram
62 await self.connection.write(self.stream_id, data, is_end)
63
64 async def add_input(self, data: bytes, is_end: bool):
65 self.buffer.put(data, is_end)

Callers 1

runMethod · 0.95

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected