sender.py 207 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
import sys
import prrt

host = sys.argv[1]
port = int(sys.argv[2])

s = prrt.PrrtSocket(port=port, isSender=True)
s.connect(host, port)

for i in range(10):
    s.send("Packet {}".format(i))
s.send("Close")