|
|
|
|
|
restoreHandlers(self,
handlers)
Restores user-registered callbacks structure from dump previously
obtained via dumpHandlers. |
source code
|
|
|
|
|
plugin(self,
owner)
Plug the Dispatcher instance into Client class instance and send
initial stream header. |
source code
|
|
|
plugout(self)
Prepares instance to be destructed. |
source code
|
|
|
StreamInit(self)
Send an initial stream header. |
source code
|
|
|
|
|
|
|
|
|
RegisterProtocol(self,
tag_name,
Proto,
xmlns=None,
order=' info ' )
Used to declare some top-level stanza name to dispatcher. |
source code
|
|
|
RegisterNamespaceHandler(self,
xmlns,
handler,
typ='
' ,
ns='
' ,
makefirst=0,
system=0)
Register handler for processing all stanzas for specified
namespace. |
source code
|
|
|
RegisterHandler(self,
name,
handler,
typ='
' ,
ns='
' ,
xmlns=None,
makefirst=0,
system=0)
Register user callback as stanzas handler of declared type. |
source code
|
|
|
RegisterHandlerOnce(self,
name,
handler,
typ='
' ,
ns='
' ,
xmlns=None,
makefirst=0,
system=0)
Unregister handler after first call (not implemented yet). |
source code
|
|
|
|
|
|
|
|
|
returnStanzaHandler(self,
conn,
stanza)
Return stanza back to the sender with
<feature-not-implemennted/> error set. |
source code
|
|
|
|
|
RegisterCycleHandler(self,
handler)
Register handler that will be called on every Dispatcher.Process()
call. |
source code
|
|
|
UnregisterCycleHandler(self,
handler)
Unregister handler that will is called on every
Dispatcher.Process() call. |
source code
|
|
|
|
|
dispatch(self,
stanza,
session=None,
direct=0)
Main procedure that performs XMPP stanza recognition and calling
apppropriate handlers for it. |
source code
|
|
|
|
|
SendAndWaitForResponse(self,
stanza,
timeout=25)
Put stanza on the wire and wait for recipient's response to
it. |
source code
|
|
|
|
|
|
|
disconnect(self)
Send a stream terminator and and handle all incoming stanzas
before stream closure. |
source code
|
|
Inherited from client.PlugIn :
DEBUG ,
PlugIn ,
PlugOut
|