Commit 9871f450 authored by Andreas Schmidt's avatar Andreas Schmidt

Update examples.

parent f9cfa765
Pipeline #3281 passed with stages
in 1 minute and 17 seconds
...@@ -3,7 +3,7 @@ import prrt ...@@ -3,7 +3,7 @@ import prrt
port = int(sys.argv[1]) port = int(sys.argv[1])
s = prrt.PrrtSocket(("127.0.0.1", port)) s = prrt.PrrtSocket(("0.0.0.0", port))
while True: while True:
d, addr = s.recv() d, addr = s.recv()
......
...@@ -5,7 +5,7 @@ host = sys.argv[1] ...@@ -5,7 +5,7 @@ host = sys.argv[1]
port = int(sys.argv[2]) port = int(sys.argv[2])
localport = int(sys.argv[3]) localport = int(sys.argv[3])
s = prrt.PrrtSocket(("127.0.1.1", localport), maximum_payload_size=150) s = prrt.PrrtSocket(("0.0.0.0", localport), maximum_payload_size=150)
s.connect((host, port)) s.connect((host, port))
for i in range(10): for i in range(10):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment