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

How to understand 2 main() functions after using uftrace to profile the C++ program? -

c# - Update a combobox from a presenter (MVP) -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -