Exemple #1
0
 def __init__(self):
     self._ping_timer = None
     self.user = User()
     self.bufferized_packets = []
     UGAMEProtocol.__init__(self)
     self._ping_delay = 5
     self.connection_lost_deferred = defer.Deferred()
Exemple #2
0
 def connectionLost(self, reason):
     self.factory.protocol_instance = None
     UGAMEProtocol.connectionLost(self, reason)
     d = self.connection_lost_deferred
     self.connection_lost_deferred = None
     d.callback(self)
     self.connection_lost_deferred = defer.Deferred()
Exemple #3
0
 def connectionLost(self, reason):
     self.factory.protocol_instance = None
     UGAMEProtocol.connectionLost(self, reason)
     d = self.connection_lost_deferred
     self.connection_lost_deferred = None
     d.callback(self)
     self.connection_lost_deferred = defer.Deferred()
Exemple #4
0
 def __init__(self):
     self.log = log.getChild(self.__class__.__name__)
     self._ping_timer = None
     self.bufferized_packets = []
     self.avatar = None
     UGAMEProtocol.__init__(self)
     self._ping_delay = 10
Exemple #5
0
 def __init__(self):
     self.log = UGAMEClientProtocol.log.get_instance(self, refs=[
         ('User', self, lambda x: x.user.serial if x.user.serial > 0 else None)
     ])
     self.user = User()
     UGAMEProtocol.__init__(self)
     self._keepalive_delay = 5
     self.connection_lost_deferred = defer.Deferred()
Exemple #6
0
 def __init__(self):
     self.log = UGAMEClientProtocol.log.get_instance(
         self,
         refs=[('User', self, lambda x: x.user.serial
                if x.user.serial > 0 else None)])
     self.user = User()
     UGAMEProtocol.__init__(self)
     self._keepalive_delay = 5
     self.connection_lost_deferred = defer.Deferred()
Exemple #7
0
 def __init__(self):
     self.log = UGAMEClientProtocol.log.get_instance(self, refs=[
         ('User', self, lambda x: x.user.serial if x.user.serial > 0 else None)
     ])
     self._ping_timer = None
     self.user = User()
     self.bufferized_packets = []
     UGAMEProtocol.__init__(self)
     self._ping_delay = 5
     self.connection_lost_deferred = defer.Deferred()
Exemple #8
0
 def __init__(self):
     self.log = log.getChild(
         self.__class__.__name__, refs=[("User", self, lambda x: x.user.serial if x.user.serial > 0 else None)]
     )
     self._ping_timer = None
     self.user = User()
     self.bufferized_packets = []
     UGAMEProtocol.__init__(self)
     self._ping_delay = 5
     self.connection_lost_deferred = defer.Deferred()
Exemple #9
0
 def __init__(self):
     self.log = UGAMEClientProtocol.log.get_instance(
         self,
         refs=[('User', self, lambda x: x.user.serial
                if x.user.serial > 0 else None)])
     self._ping_timer = None
     self.user = User()
     self.bufferized_packets = []
     UGAMEProtocol.__init__(self)
     self._ping_delay = 5
     self.connection_lost_deferred = defer.Deferred()
Exemple #10
0
 def connectionLost(self, reason):
     if hasattr(self, "_ping_timer") and self._ping_timer and self._ping_timer.active():
         self._ping_timer.cancel()
     self._ping_timer = None
     if self.avatar:
         while len(self._queues) > 0:
             self._processQueues()
         self.factory.destroyAvatar(self.avatar)
     del self.avatar
     self.ignoreIncomingData()
     UGAMEProtocol.connectionLost(self, reason)
Exemple #11
0
 def connectionLost(self, reason):
     if hasattr(self, "_ping_timer"
                ) and self._ping_timer and self._ping_timer.active():
         self._ping_timer.cancel()
     self._ping_timer = None
     if self.avatar:
         while len(self._queues) > 0:
             self._processQueues()
         self.factory.destroyAvatar(self.avatar)
     del self.avatar
     self.ignoreIncomingData()
     UGAMEProtocol.connectionLost(self, reason)
Exemple #12
0
 def connectionLost(self, reason):
     if hasattr(self, "_ping_timer") and self._ping_timer and self._ping_timer.active():
         self._ping_timer.cancel()
     self._ping_timer = None
     self.factory.protocol_instance = None
     UGAMEProtocol.connectionLost(self, reason)
     if not reason.check(error.ConnectionDone) and self.factory.verbose > 3:
         self.message("UGAMEClient.connectionLost %s" % reason)
     d = self.connection_lost_deferred
     self.connection_lost_deferred = None
     d.callback(self)
     self.connection_lost_deferred = defer.Deferred()
Exemple #13
0
 def connectionLost(self, reason):
     if hasattr(self, "_ping_timer") and self._ping_timer and self._ping_timer.active():
         self._ping_timer.cancel()
     self._ping_timer = None
     self.factory.protocol_instance = None
     UGAMEProtocol.connectionLost(self, reason)
     if not reason.check(error.ConnectionDone):
         self.log.debug("connectionLost: %s", reason)
     d = self.connection_lost_deferred
     self.connection_lost_deferred = None
     d.callback(self)
     self.connection_lost_deferred = defer.Deferred()
Exemple #14
0
 def connectionLost(self, reason):
     if hasattr(self, "_ping_timer"
                ) and self._ping_timer and self._ping_timer.active():
         self._ping_timer.cancel()
     self._ping_timer = None
     self.factory.protocol_instance = None
     UGAMEProtocol.connectionLost(self, reason)
     if not reason.check(error.ConnectionDone):
         self.log.debug("connectionLost: %s", reason)
     d = self.connection_lost_deferred
     self.connection_lost_deferred = None
     d.callback(self)
     self.connection_lost_deferred = defer.Deferred()
Exemple #15
0
 def connectionLost(self, reason):
     if self.avatar:
         self.factory.destroyAvatar(self.avatar)
         self.avatar = None
     UGAMEProtocol.connectionLost(self, reason)
Exemple #16
0
 def __init__(self):
     self._ping_timer = None
     self.bufferized_packets = []
     self.avatar = None
     UGAMEProtocol.__init__(self)
     self._ping_delay = 10
Exemple #17
0
 def __init__(self):
     self.avatar = None
     UGAMEProtocol.__init__(self)
Exemple #18
0
 def connectionLost(self, reason):
     if self.avatar:
         self.factory.destroyAvatar(self.avatar)
         self.avatar = None
     UGAMEProtocol.connectionLost(self, reason)
Exemple #19
0
 def __init__(self):
     self._ping_timer = None
     self.bufferized_packets = []
     self.avatar = None
     UGAMEProtocol.__init__(self)
     self._ping_delay = 10
Exemple #20
0
 def __init__(self):
     self.avatar = None
     UGAMEProtocol.__init__(self)