Skip to content
Snippets Groups Projects
Commit c7ed638a authored by Vincent Namy (EDU_GE)'s avatar Vincent Namy (EDU_GE)
Browse files

Protocole fix sequence crash

parent 4b6d5da4
No related branches found
No related tags found
No related merge requests found
...@@ -198,7 +198,7 @@ def send_msg(msgId:int, payload:List[int], userId:int, dest:int): ...@@ -198,7 +198,7 @@ def send_msg(msgId:int, payload:List[int], userId:int, dest:int):
acked = receive_ack(msg) acked = receive_ack(msg)
# print(running_time()-t0) # print(running_time()-t0)
seqNum += 1 seqNum = (seqNum+1)%256
return acked return acked
def receive_msg(userId:int): def receive_msg(userId:int):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment