Package beepy :: Package transports :: Module tls :: Class TLSProtocol
[show private | hide private]
[frames | no frames]

Class TLSProtocol

BaseProtocol --+            
               |            
        Protocol --+        
                   |        
        LineReceiver --+    
                       |    
            BeepProtocol --+
                           |
                          TLSProtocol

Known Subclasses:
TLSClientProtocol, TLSServerProtocol

The TLS Protocol implements the TLS transport layer
Method Summary
  startTLS(self)
start the TLS layer
    Inherited from BeepProtocol
  __init__(self)
  close(self)
  connectionLost(self, reason)
  connectionMade(self)
Called when a connection is made.
  createTransportChannel(self, channelnum)
Performs transport specific channel creation
  deleteTransportChannel(self, channelnum)
Performs transport specific channel deletion
  doSEQFrame(self)
  findFrame(self)
Search for a frame in the databuffer.
  flushDatabuf(self, channelnum)
  processQueuedData(self)
This method examines the local data queues to see if there is pending data that didn't fit within a window for a given channel.
  processSEQFrame(self, theframe)
Perform window size management for inbound SEQ frames.
  rawDataReceived(self, data)
Override this for when raw data is received.
  sendFrame(self, theframe)
sendFrame is used to push frames over the transport.
  sendMessage(self, msg, channelnum)
sendMessage is used to send a Message as one or more Frames over the transport.
  sendMsgComplete(self, channelnum, msg)
Send the final frame in a sequence of fragments.
  sendMsgFragment(self, channelnum, msg)
Send a message fragment by setting the continuation indicator for the frame.
  sendSEQFrame(self, channelnum)
This is the simplest tuning.
    Inherited from LineReceiver
  clearLineBuffer(self)
Clear buffered data.
  dataReceived(self, data)
Protocol.dataReceived.
  lineLengthExceeded(self, line)
Called when the maximum line length has been reached.
  lineReceived(self, line)
Override this for when each line is received.
  sendLine(self, line)
Sends a line to the other end of the connection.
  setLineMode(self, extra)
Sets the line-mode of this receiver.
  setRawMode(self)
Sets the raw mode of this receiver.
    Inherited from Protocol
  connectionFailed(self)
(Deprecated)
    Inherited from BaseProtocol
  makeConnection(self, transport)
Make a connection to a transport and a server.

Class Variable Summary
int TLS = 0                                                                     
    Inherited from LineReceiver
str delimiter: The line-ending delimiter to use.
int line_mode = 1                                                                     
int MAX_LENGTH: The maximum length of a line to allow (If a sent line is longer than this, the connection is dropped).
str _LineReceiver__buffer = ''
    Inherited from Protocol
tuple __implements__ = (<class 'twisted.internet.interfaces.IP...
    Inherited from BaseProtocol
int connected = 0                                                                     
NoneType transport = None                                                                  

Method Details

startTLS(self)

start the TLS layer

Class Variable Details

TLS

Type:
int
Value:
0                                                                     

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