Module netsyslog :: Class Packet
[frames | no frames]

Type Packet

object --+
         |
        Packet


Combines the PRI, HEADER and MSG into a packet.

If the packet is longer than MAX_LEN bytes in length it is automatically truncated prior to sending; any extraneous bytes are lost.
Method Summary
  __init__(self, pri, header, msg)
Initialise the object.
  __str__(self)
    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

Class Variable Summary
int MAX_LEN = 1024                                                                  

Method Details

__init__(self, pri, header, msg)
(Constructor)

Initialise the object.

The three arguments must be instances of the PriPart, HeaderPart and MsgPart classes.
Overrides:
__builtin__.object.__init__

Class Variable Details

MAX_LEN

Type:
int
Value:
1024                                                                  

Generated by Epydoc 2.1 on Fri Jul 15 11:57:30 2005 http://epydoc.sf.net