How can a client both react to user input and data received from the server?
I created a UDP server, which can handle multiple clients and can react to the data received from each clients. So far the clients only react to user input.
Is it possible, that the clients check for both user input and data on a specific port simultaneously?
Consider using threads. Python threading is restricted; only one thread runs at a time within the interpreter, but if a thread is waiting for I/O (or a 'sleep') then other threads can run.
You still need to use queues and semaphores and so forth. See the 'threading' module in the library.
Socketprogramming python