예제 #1
0
파일: layer.py 프로젝트: yagom9999/whatsapp
 def __init__(self):
     self.state = self.__class__.STATE_DISCONNECTED
     YowLayer.__init__(self)
     ConnectionCallbacks.__init__(self)
     self.interface = YowNetworkLayerInterface(self)
     self.connected = False
     self._dispatcher = None  # type: YowConnectionDispatcher
예제 #2
0
파일: layer.py 프로젝트: tgalal/yowsup
 def __init__(self):
     self.state = self.__class__.STATE_DISCONNECTED
     YowLayer.__init__(self)
     ConnectionCallbacks.__init__(self)
     self.interface = YowNetworkLayerInterface(self)
     self.connected = False
     self._dispatcher = None  # type: YowConnectionDispatcher
예제 #3
0
 def __init__(self):
     YowLayer.__init__(self)
     asyncore.dispatcher.__init__(self)
     httpProxy = HttpProxy.getFromEnviron()
     proxyHandler = None
     if httpProxy != None:
         logger.debug("HttpProxy initialize: %s" % httpProxy)
         def onConnect():
             logger.debug("HttpProxy connected")
             self.proxyHandler = None
             self.handle_connect()
         proxyHandler = httpProxy.handler()
         proxyHandler.onConnect = onConnect
     self.proxyHandler = proxyHandler
예제 #4
0
 def __init__(self):
     YowLayer.__init__(self)
     asyncore.dispatcher.__init__(self)
     httpProxy = HttpProxy.getFromEnviron()
     proxyHandler = None
     if httpProxy != None:
         logger.debug("HttpProxy initialize: %s" % httpProxy)
         def onConnect():
             logger.debug("HttpProxy connected")
             self.proxyHandler = None
             self.handle_connect()
         proxyHandler = httpProxy.handler()
         proxyHandler.onConnect = onConnect
     self.proxyHandler = proxyHandler
예제 #5
0
 def __init__(self):
     asyncore.dispatcher.__init__(self)
     self.state = self.__class__.STATE_DISCONNECTED
     YowLayer.__init__(self)
     self.interface = YowNetworkLayerInterface(self)
     httpProxy = HttpProxy.getFromEnviron()
     proxyHandler = None
     if httpProxy != None:
         logger.debug("HttpProxy initialize: %s" % httpProxy)
         def onConnect():
             logger.debug("HttpProxy connected")
             self.proxyHandler = None
             self.handle_connect()
         proxyHandler = httpProxy.handler()
         proxyHandler.onConnect = onConnect
     self.proxyHandler = proxyHandler
예제 #6
0
 def __init__(self):
     YowLayer.__init__(self)
예제 #7
0
파일: layer.py 프로젝트: nferch/yowsup
 def __init__(self):
     YowLayer.__init__(self)
예제 #8
0
파일: layer.py 프로젝트: wardwar/yowsup
 def __init__(self):
     YowLayer.__init__(self)
     tokenDictionary = TokenDictionary()
     self.writer = WriteEncoder(tokenDictionary)
     self.reader = ReadDecoder(tokenDictionary)
예제 #9
0
 def __init__(self):
     YowLayer.__init__(self)
     asyncore.dispatcher.__init__(self)
예제 #10
0
 def __init__(self):
     YowLayer.__init__(self)
     asyncore.dispatcher.__init__(self)
예제 #11
0
 def __init__(self):
     YowLayer.__init__(self)
     tokenDictionary = TokenDictionary()
     self.writer = WriteEncoder(tokenDictionary)
     self.reader = ReadDecoder(tokenDictionary)
예제 #12
0
 def __init__(self):
     YowLayer.__init__(self)
     self.data_received = DeferredQueue()