SleekXMPP/sleekxmpp/xmlstream/testclient.py

14 lines
238 B
Python
Raw Permalink Normal View History

2009-06-03 22:56:51 +00:00
import socket
import time
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(('localhost', 5228))
s.send("<stream>")
#s.flush()
s.send("<test/>")
s.send("<test/>")
s.send("<test/>")
s.send("</stream>")
#s.flush()
s.close()