Home | Trees | Index | Help |
|
---|
Package pyxmpp :: Package jabber :: Module simple |
|
Simple API for simple things like sendig messages or single stanzas.
Function Summary | |
---|---|
Star an XMPP session and send a message, then exit. | |
Connect as client to a Jabber/XMPP server and call the provided function when stream is ready for IM. |
Variable Summary | |
---|---|
str |
__revision__ = '$Id: client.py 528 2005-01-20 21:14:53Z ...
|
Function Details |
---|
send_message(my_jid, my_password, to_jid, body, subject=None, message_type=None, server=None, port=None)Star an XMPP session and send a message, then exit. :Parameters: - `my_jid`: sender JID. - `my_password`: sender password. - `to_jid`: recipient JID. - `body`: message body. - `subject`: message subject. - `message_type`: message type. - `server`: server to connect to (default: derivied from `my_jid` using DNS records). - `port`: TCP port number to connect to (default: retrieved using SRV DNS record, or 5222). :Types: - `my_jid`: `pyxmpp.jid.JID` - `my_password`: `unicode` - `to_jid`: `pyxmpp.jid.JID` - `body`: `unicode` - `subject`: `unicode` - `message_type`: `str` - `server`: `unicode` or `str` - `port`: `int` |
xmpp_do(jid, password, function, server=None, port=None)Connect as client to a Jabber/XMPP server and call the provided function when stream is ready for IM. The function will be called with one argument -- the XMPP stream. After function returns the stream is closed. |
Variable Details |
---|
__revision__
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Wed May 31 22:37:03 2006 | http://epydoc.sf.net |