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

Method opcode

dns/message.py:914–919  ·  view source on GitHub ↗

Return the opcode. Returns a ``dns.opcode.Opcode``.

(self)

Source from the content-addressed store, hash-verified

912 self.ednsflags |= evalue
913
914 def opcode(self) -> dns.opcode.Opcode:
915 """Return the opcode.
916
917 Returns a ``dns.opcode.Opcode``.
918 """
919 return dns.opcode.from_flags(int(self.flags))
920
921 def set_opcode(self, opcode: dns.opcode.Opcode) -> None:
922 """Set the opcode.

Callers 2

to_textMethod · 0.95
make_responseFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected