Package xmpp :: Module client :: Class Component
[show private | hide private]
[frames | no frames]

Class Component

CommonClient --+
               |
              Component


Component class. The only difference from CommonClient is ability to perform component authentication.
Method Summary
  auth(self, name, password, dup)
Authenticate component "name" with password "password".
    Inherited from CommonClient
  __init__(self, server, port, debug)
Caches server name and (optionally) port to connect to.
  connect(self, server, proxy)
Make a tcp/ip connection, protect it with tls if possible and start XMPP stream.
  disconnected(self)
Called on disconnection.
  DisconnectHandler(self)
Default disconnect handler.
  event(self, eventName, args)
Default event handler.
  isConnected(self)
Returns connection state.
  reconnectAndReauth(self)
Example of reconnection method.
  RegisterDisconnectHandler(self, handler)
Register handler that will be called on disconnect.
  UnregisterDisconnectHandler(self, handler)
Unregister handler that is called on disconnect.

Method Details

auth(self, name, password, dup=None)

Authenticate component "name" with password "password".

Generated by Epydoc 2.1 on Sun Dec 26 09:52:57 2004 http://epydoc.sf.net