Home | Trees | Index | Help |
---|
Package libxml2dom :: Module xmpp :: Class Session |
|
An XMPP session.
Method Summary | |
---|---|
Initialise an XMPP session using the given 'address': a tuple of the form (hostname, port). | |
connect(self,
host)
| |
createAuth(self)
| |
createIq(self)
| |
createMessage(self)
| |
createPresence(self)
| |
createStanza(self,
namespaceURI,
localName)
| |
Read as much as possible from the server. | |
Wait for an incoming stanza, or as long as 'timeout' (in milliseconds), or forever if 'timeout' is omitted or set to None, returning either a stanza document (fragment) or None if nothing was received. | |
Send the 'stanza' to the server, returning a response stanza if an immediate response was provided, or None otherwise. | |
Write the plain string 's' to the server. |
Class Variable Summary | |
---|---|
str |
connect_str = '<?xml version="1.0"?>\n<stream:stream to=...
|
str |
disconnect_str = '</stream:stream>'
|
Method Details |
---|
__init__(self,
address,
timeout=500,
bufsize=1024,
encoding='utf-8')
|
read(self)Read as much as possible from the server. |
receive(self, timeout=None)Wait for an incoming stanza, or as long as 'timeout' (in milliseconds), or forever if 'timeout' is omitted or set to None, returning either a stanza document (fragment) or None if nothing was received. |
send(self, stanza)Send the 'stanza' to the server, returning a response stanza if an immediate response was provided, or None otherwise. |
write(self, s)Write the plain string 's' to the server. |
Class Variable Details |
---|
connect_str
|
disconnect_str
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Tue Sep 18 23:37:02 2007 | http://epydoc.sf.net |