| Home | Trees | Index | Help |
|---|
| Package tp :: Package netlib :: Package discover :: Package pyZeroconf :: Module Zeroconf :: Class DNSOutgoing |
|
object --+
|
DNSOutgoing
Object representation of an outgoing packet
| Method Summary | |
|---|---|
__init__(self,
flags,
multicast)
| |
Adds an additional answer... | |
Adds an answer... | |
Adds an answer if if does not expire by a certain time... | |
Adds an authoritative answer... | |
Adds a question... | |
Inserts an unsigned short in a certain position in the packet... | |
Returns a string containing the packet's bytes No further parts should be added to the packet once this is done. | |
Writes a single byte to the packet... | |
Writes an unsigned integer to the packet... | |
Writes a domain name to the packet... | |
Writes a question to the packet... | |
Writes a record (answer, authoritative answer, additional) to... | |
Writes an unsigned short to the packet... | |
Writes a string to the packet... | |
Writes a UTF-8 string of a given length to the packet... | |
| Inherited from object | |
x.__delattr__('name') <==> del x.name... | |
x.__getattribute__('name') <==> x.name... | |
x.__hash__() <==> hash(x)... | |
T.__new__(S, ...) -> a new object with type S, a subtype of T... | |
helper for pickle... | |
helper for pickle... | |
x.__repr__() <==> repr(x)... | |
x.__setattr__('name', value) <==> x.name = value... | |
x.__str__() <==> str(x)... | |
| Method Details |
|---|
addAdditionalAnswer(self, record)Adds an additional answer |
addAnswer(self, inp, record)Adds an answer |
addAnswerAtTime(self, record, now)Adds an answer if if does not expire by a certain time |
addAuthorativeAnswer(self, record)Adds an authoritative answer |
addQuestion(self, record)Adds a question |
insertShort(self, index, value)Inserts an unsigned short in a certain position in the packet |
packet(self)Returns a string containing the packet's bytes No further parts should be added to the packet once this is done. |
writeByte(self, value)Writes a single byte to the packet |
writeInt(self, value)Writes an unsigned integer to the packet |
writeName(self, name)Writes a domain name to the packet |
writeQuestion(self, question)Writes a question to the packet |
writeRecord(self, record, now)Writes a record (answer, authoritative answer, additional) to the packet |
writeShort(self, value)Writes an unsigned short to the packet |
writeString(self, value, length)Writes a string to the packet |
writeUTF(self, s)Writes a UTF-8 string of a given length to the packet |
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Fri Jan 1 08:00:27 2010 | http://epydoc.sf.net |