Commit 53f72938 authored by thomas alfroy's avatar thomas alfroy
Browse files

modif sock sender

parent bc2acbd5
......@@ -173,12 +173,12 @@ while con:
data_tmp[5] = ECN_ACTIVE
data = bytes(data_tmp)
tagged = True
sock_sender.sendto(data, (dest_recv, port_recv))
sock_recv.sendto(data, (dest_recv, port_recv))
else:
if random.random() <= 0.7:
sock_sender.sendto(data, (dest_recv, port_recv))
sock_recv.sendto(data, (dest_recv, port_recv))
else:
sock_sender.sendto(data, (dest_recv, port_recv))
sock_recv.sendto(data, (dest_recv, port_recv))
......@@ -189,7 +189,7 @@ while con:
elif s == sock_recv:
data, addr = sock_recv.recvfrom(64)
sock_recv.sendto(data, (dest_sender, port_sender))
sock_sender.sendto(data, (dest_sender, port_sender))
if debug :
print("message {} received from receiver".format(data))
#parse_new_messages(data)
......
Supports Markdown
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