comparison plugins/plugin_xep_0065.py @ 38:3e24753b9e0b

Fixed parameters loading/saving - removed unused "parent" argument in importParams - changed "ext" for "tld" in wix jid example
author Goffi <goffi@goffi.org>
date Thu, 17 Dec 2009 13:13:13 +1100
parents bb72c29f3432
children 4392f1fdb064
comparison
equal deleted inserted replaced
37:a61beb21d16d 38:3e24753b9e0b
468 self.server_factory = Socks5ServerFactory() 468 self.server_factory = Socks5ServerFactory()
469 self.server_factory.protocol.host = self.host #needed for progress CB 469 self.server_factory.protocol.host = self.host #needed for progress CB
470 self.client_factory = Socks5ClientFactory() 470 self.client_factory = Socks5ClientFactory()
471 471
472 #parameters 472 #parameters
473 host.memory.importParams(self, XEP_0065.params) 473 host.memory.importParams(XEP_0065.params)
474 host.memory.setDefault("IP", "File Transfert", self.getExternalIP) 474 host.memory.setDefault("IP", "File Transfert", self.getExternalIP)
475 475
476 port = int(self.host.memory.getParamA("Port", "File Transfert")) 476 port = int(self.host.memory.getParamA("Port", "File Transfert"))
477 info("Launching Socks5 Stream server on port %d", port) 477 info("Launching Socks5 Stream server on port %d", port)
478 reactor.listenTCP(port, self.server_factory) 478 reactor.listenTCP(port, self.server_factory)