Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stoper = currentTime
- while( (not ackReceived)
- and
- (currrentTime - stoper < retryTimeout) )
- {
- try
- {
- Receive( X ); //this is the main question,
- if( packet is what we want )
- {
- ackReceived = true
- }
- }
- catch(timeout) { ... }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement