Package beepy :: Package core :: Module message :: Class Message
[show private | hide private]
[frames | no frames]

Class Message


A Message is the base unit of application data that is used by Channels and Profiles.
Method Summary
  __init__(self, dataframe, msgType, msgno, payload, ansno, cb, args)
  __copy__(self)
  __len__(self)
  __repr__(self)
  __str__(self)
  append(self, data)
Appends data to the Message payload
  isANS(self)
Check to see if this is an ANS frame
  isERR(self)
Check to see if this is an ERR frame
  isMSG(self)
Check to see if this is a MSG frame
  isNUL(self)
Check to see if this is a NUL frame
  isRPY(self)
Check to see if this is a RPY frame

Method Details

__init__(self, dataframe=None, msgType=None, msgno=None, payload='', ansno=None, cb=None, args=None)
(Constructor)

Parameters:
dataframe - a raw dataFrame
           (type=DataFrame)

append(self, data)

Appends data to the Message payload

isANS(self)

Check to see if this is an ANS frame
Returns:
1 if true

isERR(self)

Check to see if this is an ERR frame
Returns:
1 if true

isMSG(self)

Check to see if this is a MSG frame
Returns:
1 if true

isNUL(self)

Check to see if this is a NUL frame
Returns:
1 if true

isRPY(self)

Check to see if this is a RPY frame
Returns:
1 if true

Generated by Epydoc 2.0 on Thu Sep 30 14:39:25 2004 http://epydoc.sf.net