root/tags/Release-0_3_2/RBJabber/RBJabber/TestInteractive.py
| Revision 135, 252 bytes (checked in by sholloway, 7 years ago) |
|---|
| Line | |
|---|---|
| 1 | import sys |
| 2 | import Client |
| 3 | |
| 4 | def CreateJC(server, username, password, resource='python-interactive'): |
| 5 | jc = Client.Client(server, fileIn=sys.stdout, fileOut=sys.stdout) |
| 6 | jc.Authenticate(username, password, resource) |
| 7 | jc.Presence() |
| 8 | return jc |
| 9 |
Note: See TracBrowser for help on using the browser.
