Handling multiple possible events TCP sender, pseudocode to Python 2.7 -


i'm having trouble turning pseudocode tcp sender actual code. main thing i'm not sure how handle events. want program in python.

loop(forever) {   switch(event)      event: data received application above // function call happens     ...     break;     event: timer timeout     ...     break;     ack received, ack field value of y     ...     break; } 


Comments

Popular posts from this blog

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

javascript - Confirm a form & display message if form is valid with JQuery -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -