예제 #1
0
파일: client.py 프로젝트: gbour/twotp
 def __init__(self, nodeName, cookie, onConnectionLost=lambda x: None):
     """
     Initialize the server factory.
     """
     NodeBaseFactory.__init__(self, nodeName, cookie)
     self._connectDeferred = Deferred()
     self.onConnectionLost = onConnectionLost
예제 #2
0
파일: server.py 프로젝트: cybergrind/twotp
 def __init__(self, nodeName, cookie, epmdConnectDeferred):
     """
     Initialize the server factory.
     """
     NodeBaseFactory.__init__(self, nodeName, cookie)
     epmdConnectDeferred.addCallback(self._epmdConnected)
     self._nodeCache = {}