why is recvfrom() not updating the received message

103 Views Asked by At

I am using recvfrom inside a while loop that also performs other non related functions, I am using UDP to send either 1 or 0 continuously from a different machine. The message is received ok but when I change the message from 1 to 0 or viceversa from the other computer the message received is not updated in the receiving script and continues to show whatever it was sent first. When I stop the script and run it again it updates.

0

There are 0 best solutions below