Package pyfics :: Module protocols :: Class IcsParsingProtocol
[hide private]

Class IcsParsingProtocol

source code

twisted.internet.protocol.BaseProtocol --+                    
                                         |                    
        twisted.internet.protocol.Protocol --+                
                                             |                
      twisted.protocols.basic.LineOnlyReceiver --+            
                                                 |            
                                 SmartLineReceiver --+        
                                                     |        
                                  ChangingLineReceiver --+    
                                                         |    
        twisted.internet.protocol.BaseProtocol --+       |    
                                                 |       |    
                twisted.internet.protocol.Protocol --+   |    
                                                     |   |    
                   twisted.conch.telnet.TelnetProtocol --+    
                                                         |    
                                               IcsProtocol --+
                                                             |
                                                            IcsParsingProtocol
Known Subclasses:
InteractiveIcsParsingProtocol

Ics protocol with parsing capabilities. This protocol can parse received data with a specified parser.

Instance Methods [hide private]
 
lineReceived(self, line)
Parse line and send to datagramReceived.
source code
 
datagramReceived(self, datagram)
Override this to do anything useful with datagrams.
source code

Inherited from ChangingLineReceiver: dataReceived

Inherited from twisted.protocols.basic.LineOnlyReceiver: lineLengthExceeded, sendLine

Inherited from twisted.internet.protocol.Protocol: connectionLost

Inherited from twisted.internet.protocol.BaseProtocol: __providedBy__, connectionMade, makeConnection

Inherited from twisted.conch.telnet.TelnetProtocol: disableLocal, disableRemote, enableLocal, enableRemote, unhandledCommand, unhandledSubnegotiation

Class Variables [hide private]
object parser = None
An object with a parse callable.

Inherited from IcsProtocol: linealike

Inherited from ChangingLineReceiver: delimiters

Inherited from SmartLineReceiver: MAX_LENGTH, delimiter, rmlinealike

Inherited from twisted.protocols.basic.LineOnlyReceiver (private): _buffer

Inherited from twisted.internet.protocol.Protocol: __implemented__, __provides__

Inherited from twisted.internet.protocol.BaseProtocol: connected, transport

Method Details [hide private]

lineReceived(self, line)

source code 
Parse line and send to datagramReceived.
Overrides: twisted.protocols.basic.LineOnlyReceiver.lineReceived

Class Variable Details [hide private]

parser

An object with a parse callable. When a line is received, this objects parse callable is called with line as an argument and the return value is sent to datagramReceived.
Type:
object
Value:
None