t.n.d.Message : class documentation

Part of twisted.names.dns View Source View In Hierarchy

Message contains all the information represented by a single DNS request or response.
Instance Variable rCode A response code, used to indicate success or failure in a message which is a response from a server to a client request. (type: 0 <= int < 16)
Method __init__ Undocumented
Method addQuery Add another query to this Message.
Method encode Undocumented
Method decode Undocumented
Method parseRecords Undocumented
Method lookupRecordType Retrieve the IRecord implementation for the given record type.
Method toStr Encode this Message into a byte string in the format described by RFC 1035.
Method fromStr Decode a byte string in the format described by RFC 1035 into this Message.
rCode =
A response code, used to indicate success or failure in a message which is a response from a server to a client request. (type: 0 <= int < 16)
def __init__(self, id=0, answer=0, opCode=0, recDes=0, recAv=0, auth=0, rCode=OK, trunc=0, maxSize=512): (source)
Undocumented
def addQuery(self, name, type=ALL_RECORDS, cls=IN): (source)
Add another query to this Message.
ParametersnameThe name to query. (type: bytes)
typeQuery type (type: int)
clsQuery class (type: int)
def encode(self, strio): (source)
Undocumented
def decode(self, strio, length=None): (source)
Undocumented
def parseRecords(self, list, num, strio): (source)
Undocumented
def lookupRecordType(self, type): (source)
Retrieve the IRecord implementation for the given record type.
ParameterstypeA record type, such as A or NS. (type: int)
ReturnsAn object which implements IRecord or None if none can be found for the given type. (type: types.ClassType)
def toStr(self): (source)

Encode this Message into a byte string in the format described by RFC

Returns (type: bytes)
def fromStr(self, str): (source)
Decode a byte string in the format described by RFC 1035 into this Message.
Parametersstrbytes
API Documentation for Twisted, generated by pydoctor at 2013-04-03 11:20:05.