Home | Trees | Index | Help |
---|
Package xmpp :: Module client :: Class Component |
|
CommonClient
--+
|
Component
Method Summary | |
---|---|
Init function for Components. | |
Authenticate component "name" with password "password". | |
This will connect to the server, and if the features tag is found then set the namespace to be jabber:client as that is required for jabberd2. | |
Inherited from CommonClient | |
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=5347,
typ=None,
debug=['always', 'nodebuilder'],
domains=None,
component=0)
Init function for Components. As components use a different auth
mechanism which includes the namespace of the component. Jabberd1.4 and
Ejabberd use the default namespace then for all client messages.
Jabberd2 uses jabber:client. 'server' argument is a server name that
you are connecting to (f.e. "localhost"). 'port' can be
specified if 'server' resolves to correct IP. If it is not then you'll
need to specify IP and port while calling "connect()".
|
auth(self, name, password, dup=None, sasl=0)Authenticate component "name" with password "password". |
connect(self, server=None, proxy=None)This will connect to the server, and if the features tag is found then set the namespace to be jabber:client as that is required for jabberd2. 'server' and 'proxy' arguments have the same meaning as in xmpp.Client.connect()
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Mon Mar 6 14:11:54 2006 | http://epydoc.sf.net |