Home | Trees | Indices | Help |
|
---|
|
Jabber external component ("jabber:component:accept" protocol) interface implementation.
Override this class to build your components.
|
|||
|
|||
|
|||
pyxmpp.jabberd.ComponentStream |
|
||
|
|||
socket.socket
|
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
str
|
disco_category disco category to be used to create disco_identity. |
||
pyxmpp.jabber.DiscoIdentity |
disco_identity disco identity (part of disco info) announced by the component. |
||
pyxmpp.jabber.DiscoInfo |
disco_info disco info announced by the component. |
||
pyxmpp.jabber.DiscoItems |
disco_items disco items announced by the component. |
||
str
|
disco_type disco type to be used to create disco_identity. |
||
pyxmpp.JID |
jid component JID (should contain only the domain part). |
||
int
|
keepalive keepalive interval for the stream. |
||
int
|
port port number on the server to which the commonent will connect. |
||
unicode
|
secret the authentication secret. |
||
unicode
|
server server to which the commonent will connect. |
||
pyxmpp.jabberd.ComponentStream |
stream the XMPP stream object for the active connection or None if no connection is active.
|
|
|
Establish a connection with the server. Set self.stream to the pyxmpp.jabberd.ComponentStream when initial connection succeeds.
|
|
|
Simple 'main loop' for a component. This usually will be replaced by something more sophisticated. E.g. handling of other input sources. |
|
|
self .
|
Handle a disco-info query.
|
Handle a disco-items query.
|
|
Handle stream creation event. [may be overriden in derived classes] By default: do nothing.
|
Handle stream closure event. [may be overriden in derived classes] By default: do nothing.
|
Handle a stream error received. [may be overriden in derived classes] By default: just log it. The stream will be closed anyway.
|
Handle a stream state change. [may be overriden in derived classes] By default: do nothing.
|
Handle stream connection event. [may be overriden in derived classes] By default: do nothing. |
Handle successful authentication event. A good place to register stanza handlers and disco features. [should be overriden in derived classes] By default: set disco#info and disco#items handlers. |
Get disco#info data for a node. [may be overriden in derived classes] By default: return self.disco_info if no specific node name is provided.
|
Get disco#items data for a node. [may be overriden in derived classes] By default: return self.disco_items if no specific node name is provided.
|
Handle stream disconnection (connection closed by peer) event. [may be overriden in derived classes] By default: do nothing. |
|
disco_identitydisco identity (part of disco info) announced by the component. Created when a stream is connected. |
disco_infodisco info announced by the component. Created when a stream is connected.
|
disco_itemsdisco items announced by the component. Created when a stream is connected.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Apr 5 12:26:20 2010 | http://epydoc.sourceforge.net |