Home | Trees | Index | Help |
---|
Package xmpp :: Module client :: Class CommonClient |
|
Client
,
Component
Method Summary | |
---|---|
Caches server name and (optionally) port to connect to. | |
Make a tcp/ip connection, protect it with tls if possible and start XMPP stream. | |
Called on disconnection. | |
Default disconnect handler. | |
Default event handler. | |
Returns connection state. | |
Example of reconnection method. | |
Register handler that will be called on disconnect. | |
Unregister handler that is called on disconnect. |
Method Details |
---|
__init__(self,
server,
port=5222,
debug=['always', 'nodebuilder'])
|
connect(self, server=None, proxy=None)Make a tcp/ip connection, protect it with tls if possible and start XMPP stream. |
disconnected(self)Called on disconnection. Calls disconnect handlers and cleans things up. |
DisconnectHandler(self)Default disconnect handler. Just raises an IOError. If you choosed to use this class in your production client, override this method or at least unregister it. |
event(self, eventName, args={})Default event handler. To be overriden. |
isConnected(self)Returns connection state. F.e.: None / 'tls' / 'tcp+non_sasl' . |
reconnectAndReauth(self)Example of reconnection method. In fact, it can be used to batch connection and auth as well. |
RegisterDisconnectHandler(self, handler)Register handler that will be called on disconnect. |
UnregisterDisconnectHandler(self, handler)Unregister handler that is called on disconnect. |
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Wed May 4 07:28:29 2005 | http://epydoc.sf.net |