mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-12-22 11:09:11 +00:00
14 lines
238 B
Python
14 lines
238 B
Python
|
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()
|