def from_wire(wire, keyring=None, request_mac='', xfr=False, origin=None, tsig_ctx=None, multi=False, first=True, question_only=False, one_rr_per_rrset=False, ignore_trailing=False):
 m = Message(id=0)
 m.keyring = keyring
 m.request_mac = request_mac
 m.xfr = xfr
 m.origin = origin
 m.tsig_ctx = tsig_ctx
 m.multi = multi
 m.first = first
 reader = _WireReader(wire, m, question_only, one_rr_per_rrset, ignore_trailing)
 reader.read()
 return m

def from_wire ( wire , keyring = None , request_mac = '' , xfr = False , origin = None , tsig_ctx = None , multi = False , first = True , question_only = False , one_rr_per_rrset = False , ignore_trailing = False ) : m = Message ( id = 0 ) m . keyring = keyring m . request_mac = request_mac m . xfr = xfr m . origin = origin m . tsig_ctx = tsig_ctx m . multi = multi m . first = first reader = _WireReader ( wire , m , question_only , one_rr_per_rrset , ignore_trailing ) reader . read ( ) return m
convert a dns wire format message into a message object .