'Constructor
@param pi: this factory\'s protocol interpreter
@param peerHost: if peerCheck is True, this is the tuple that the
generated instance will use to perform security checks'

def __init__(self, pi, peerHost=None, reactor=None):

    self.pi = pi
    self.peerHost = peerHost
    self.deferred = defer.Deferred()
    self.delayedCall = None
    if (reactor is None):
        from twisted.internet import reactor
    self._reactor = reactor
