Module test_protocol :: Class MyLineProtocol
[show private | hide private]
[frames | no frames]

Class MyLineProtocol

  object --+            
           |            
BaseProtocol --+        
               |        
     RawProtocol --+    
                   |    
        LineProtocol --+
                       |
                      MyLineProtocol


Method Summary
a new object with type S, a subtype of T __new__(S, ...)
  connectionEstablished(self)
Callback called when the connection is established
  connectionLost(self)
Callback called when the connection is lost
  dataReceived(self, data)
Process received data into lines (inherited from LineProtocol)
  lineLengthExceeded(self, line)
Callback called when a line exceeeds max length
  lineReceived(self, line)
Callback
  rawDataReceived(self, data)
Callback
  send(self, line)
  sendline(self, line)
Send a line. (inherited from LineProtocol)
  setLineMode(self, extra)
Enter line mode (inherited from LineProtocol)
  setRawMode(self)
Enter Raw mode (inherited from LineProtocol)

Class Variable Summary
str line

Method Details

__new__(S, ...)

Returns:
a new object with type S, a subtype of T

connectionEstablished(self)

Callback called when the connection is established
Overrides:
Honey.Protocol.BaseProtocol.connectionEstablished (inherited documentation)

connectionLost(self)

Callback called when the connection is lost
Overrides:
Honey.Protocol.BaseProtocol.connectionLost (inherited documentation)

lineLengthExceeded(self, line)

Callback called when a line exceeeds max length

This default implementation simply close the socket.

Override it if this is not the desired behavior
Overrides:
Honey.Protocol.LineProtocol.lineLengthExceeded (inherited documentation)

lineReceived(self, line)

Callback

Should be overriden
Overrides:
Honey.Protocol.LineProtocol.lineReceived (inherited documentation)

rawDataReceived(self, data)

Callback

Should be overriden
Overrides:
Honey.Protocol.LineProtocol.rawDataReceived (inherited documentation)

Class Variable Details

line

Type:
str
Value:
''                                                                     

Generated by Epydoc 1.1 on Sun Dec 7 16:06:04 2003 http://epydoc.sf.net