Home | Mirror | Search

4. library

4.1. python-xmpp

			
$ sudo apt-get install python-xmpp			
			
			
			
$ cat jabber.py
import xmpp
jid=xmpp.protocol.JID('neo@netkiller.8800.org')
cl=xmpp.Client(jid.getDomain(),debug=[])
cl.connect()
cl.auth(jid.getNode(),'chen')
cl.send(xmpp.protocol.Message('neo@netkiller.8800.org','hi there'))
cl.disconnect()		
			
			
comments powered by Disqus