Commit bdda1219 authored by Maxim Onciul's avatar Maxim Onciul
Browse files

don't rewrite socket.bind()

parent 77774903
......@@ -8,9 +8,9 @@ import run_pi
def receive_data():
config: Dict[str, Any] = run_pi.common()
config["socket"].bind(config["me"])
for idx in range(config["num_runs"]):
config["socket"].bind(config["me"])
with open(config["cipher_file"][idx], "w") as f:
for _ in range(config["k"]):
f.write(config["socket"].recvfrom(4096)[0].decode("utf-8"))
......
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