Package tp :: Package netlib :: Package discover :: Package pyZeroconf :: Module Zeroconf :: Class DNSOutgoing
[show private | hide private]
[frames | no frames]

Type DNSOutgoing

object --+
         |
        DNSOutgoing


Object representation of an outgoing packet

Method Summary
  __init__(self, flags, multicast)
  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...
  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...
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name...
  __getattribute__(...)
x.__getattribute__('name') <==> x.name...
  __hash__(x)
x.__hash__() <==> hash(x)...
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T...
  __reduce__(...)
helper for pickle...
  __reduce_ex__(...)
helper for pickle...
  __repr__(x)
x.__repr__() <==> repr(x)...
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value...
  __str__(x)
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

Generated by Epydoc 2.1 on Fri Jan 1 08:00:27 2010 http://epydoc.sf.net