def init(self):
     self.last_upnp_time = 0
     self.last_reconnect_time = 0
     self.last_internet_state = 'disconnected'
     self.last_bytes_in_counter = 0
     net_misc.SetConnectionDoneCallbackFunc(ConnectionDoneCallback)
     net_misc.SetConnectionFailedCallbackFunc(ConnectionFailedCallback)
示例#2
0
 def init(self):
     self.log_transitions = True
     self.last_upnp_time = 0
     self.last_reconnect_time = 0
     self.last_internet_state = 'disconnected'
     net_misc.SetConnectionDoneCallbackFunc(ConnectionDoneCallback)
     net_misc.SetConnectionFailedCallbackFunc(ConnectionFailedCallback)