Package elisa :: Package plugins :: Package lirc :: Module lirc_input :: Class CallbackConnector

Class CallbackConnector

source code


Instance Methods
 
__init__(self, callback, lostback=None) source code
 
buildProtocol(self, addr)
Create an instance of a subclass of Protocol.
source code
 
connectionLost(self, *args) source code
 
connectionFailed(self, *args) source code

Inherited from twisted.internet.protocol.ClientFactory: clientConnectionFailed, clientConnectionLost, startedConnecting

Inherited from twisted.internet.protocol.Factory: doStart, doStop, startFactory, stopFactory

Class Variables

Inherited from twisted.internet.protocol.Factory: noisy, numPorts, protocol

Method Details

buildProtocol(self, addr)

source code 

Create an instance of a subclass of Protocol.

The returned instance will handle input on an incoming server connection, and an attribute "factory" pointing to the creating factory.

Override this method to alter how Protocol instances get created.

Parameters:
  • addr - an object implementing twisted.internet.interfaces.IAddress
Overrides: twisted.internet.protocol.Factory.buildProtocol
(inherited documentation)