Advertisement
Guest User

Untitled

a guest
Feb 11th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. stoper = currentTime
  2. while( (not ackReceived)
  3. and
  4. (currrentTime - stoper < retryTimeout) )
  5. {
  6. try
  7. {
  8. Receive( X ); //this is the main question,
  9. if( packet is what we want )
  10. {
  11. ackReceived = true
  12. }
  13. }
  14. catch(timeout) { ... }
  15.  
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement