Hello,
I am in the middle of implementing a TFTP client using python though I have come unstuck on a client timeout feature. I am trying to implement the following feature, quote taken from the RFC:
"If a packet gets lost in the network, the intended recipient will timeout and may retransmit his last packet (which may be data or an acknowledgment)"
Here is my timeout code:
r = select.select([sock], [], [], 5.0)
How can I say 'if timeout, send ack for last packet'? I know how to send an ACK for a packet received, though that is of little help!
Thanks