def __init__(self,
                 configdata,
                 username='******',
                 realname='realname',
                 password=None,
                 daemon=None):
        MessageChannel.__init__(self, daemon=daemon)
        self.give_up = True
        self.serverport = (configdata['host'], configdata['port'])
        #default hostid for use with miniircd which doesnt send NETWORK
        self.hostid = configdata['host'] + str(configdata['port'])
        self.socks5 = configdata["socks5"]
        self.usessl = configdata["usessl"]
        self.socks5_host = configdata["socks5_host"]
        self.socks5_port = int(configdata["socks5_port"])
        self.channel = get_config_irc_channel(configdata["channel"],
                                              configdata["btcnet"])
        self.userrealname = (username, realname)
        if password and len(password) == 0:
            password = None
        self.password = password

        self.tx_irc_client = None
        #TODO can be configuration var, how long between reconnect attempts:
        self.reconnect_interval = 10
Exemple #2
0
 def __init__(self,
              configdata,
              username='******',
              realname='realname',
              password=None,
              daemon=None,
              hostid=None):
     MessageChannel.__init__(self, daemon=daemon)
     self.give_up = False
     self.counterparties = [x['counterparty'] for x in t_orderbook]
     self.hostid = "dummy"
     if hostid:
         self.hostid = hostid
     self.serverport = self.hostid