summaryrefslogtreecommitdiff
path: root/sleekxmpp/xmlstream/testclient.py
blob: 50eb6c500eb127043820ed23b72a9d6d296d3501 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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()