comparison plugins/plugin_xep_0065.py @ 72:f271fff3a713

MUC implementation: first draft /!\ the experimental muc branche of wokkel must be used - bridge: new roomJoined signal - wix: contact list widget is now in a separate file, and manage different kinds of presentation - wix: chat window now manage group chat (first draft, not working yet) - wix: constants are now in a separate class, so then can be accessible from everywhere - wix: new menu to join room (do nothing yet, except entering in a test room) - new plugin for xep 0045 (MUC), use wokkel experimental MUC branch - plugins: the profile is now given for get_handler, cause it can be used internally by a plugin (e.g.: xep-0045 plugin)
author Goffi <goffi@goffi.org>
date Sun, 21 Mar 2010 10:28:55 +1100
parents 86f1f7f6d332
children 55d3ef84f01f
comparison
equal deleted inserted replaced
71:efe81b61673c 72:f271fff3a713
478 478
479 port = int(self.host.memory.getParamA("Port", "File Transfert")) 479 port = int(self.host.memory.getParamA("Port", "File Transfert"))
480 info(_("Launching Socks5 Stream server on port %d"), port) 480 info(_("Launching Socks5 Stream server on port %d"), port)
481 reactor.listenTCP(port, self.server_factory) 481 reactor.listenTCP(port, self.server_factory)
482 482
483 def getHandler(self): 483 def getHandler(self, profile):
484 return XEP_0065_handler(self) 484 return XEP_0065_handler(self)
485 485
486 def getExternalIP(self): 486 def getExternalIP(self):
487 """Return IP visible from outside, by asking to a website""" 487 """Return IP visible from outside, by asking to a website"""
488 return getPage("http://www.goffi.org/sat_tools/get_ip.php") 488 return getPage("http://www.goffi.org/sat_tools/get_ip.php")