Exemple #1
0
 def __act_retry_hs(self, data):
     utils.log("INFO", "Handshake rejected by server",('__act_retry_hs',self))
     self.__config['init'] = self.__get_id()
     utils.log("INFO", "Retrying in %s seconds"%(WAIT_CONNECT),('__act_retry_hs',self))
     time.sleep(WAIT_CONNECT)
     utils.log("DEBUG", "Reconnecting ...",('__act_retry_hs',self))
     self.send_json(send.handshake(self.__config, self.__error_proc+self.__error_dir))
Exemple #2
0
 def opened(self):
     utils.log("INFO", "Socket opened, initiating handshake ...",
               ('opened', self))
     self.__connected = True
     self.send_json(
         send.handshake(self.__config,
                        self.__error_proc + self.__error_dir))
     utils.log("DEBUG", "Handshake init message send", ('opened', self))
Exemple #3
0
 def __act_retry_hs(self, data):
     utils.log("INFO", "Handshake rejected by server",
               ('__act_retry_hs', self))
     self.__config['init'] = self.__get_id()
     utils.log("INFO", "Retrying in %s seconds" % (WAIT_CONNECT),
               ('__act_retry_hs', self))
     time.sleep(WAIT_CONNECT)
     utils.log("DEBUG", "Reconnecting ...", ('__act_retry_hs', self))
     self.send_json(
         send.handshake(self.__config,
                        self.__error_proc + self.__error_dir))
Exemple #4
0
 def opened(self):
     utils.log("INFO", "Socket opened, initiating handshake ...",('opened',self))
     self.__connected = True
     self.send_json(send.handshake(self.__config, self.__error_proc+self.__error_dir))
     utils.log("DEBUG", "Handshake init message send",('opened',self))