Package beepy :: Package core :: Module frame :: Class SEQFrame
[show private | hide private]
[frames | no frames]

Class SEQFrame

Frame --+
        |
       SEQFrame


SEQFrames are objects that represent the SEQ frames used in RFC3081 for the TCP mapping of BEEP. SEQ frames are used to tune the window size for sending and receiving over a particular channel within an individual TCP connection. This is one of the most useful and cool parts of BEEP.
Method Summary
  __init__(self, channelnum, ackno, window, databuffer)
  __str__(self)
  _bufferToFrame(self, data)
Converts a bytestring data buffer to a frame object.
  _checkValues(self, channelnum, ackno, window)

Class Variable Summary
long ackno = -1L
int channelnum = -1                                                                    
str dataFrameType = 'SEQ'
str frameType = 'seq'
str TRAILER = '\r\n'
int window = -1                                                                    

Method Details

_bufferToFrame(self, data)

Converts a bytestring data buffer to a frame object.
Parameters:
data - a bytestring containing a raw frame
           (type=string)
Returns:
SEQFrame
Raises:
SEQFrameException - if format of frame is invalid

Class Variable Details

ackno

Type:
long
Value:
-1L                                                                    

channelnum

Type:
int
Value:
-1                                                                    

dataFrameType

Type:
str
Value:
'SEQ'                                                                  

frameType

Type:
str
Value:
'seq'                                                                  

TRAILER

Type:
str
Value:
'''\r
'''                                                                    

window

Type:
int
Value:
-1                                                                    

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