I would like to have an interactive console in a single-threaded script that has several TCP connections open. This means I can\'t just have a standard input blocking the th
Either single-threaded or multi-threaded will do, but if you choose not to use threads, you will need to use polling (in C this may be done using poll(2), for example) and check for whether the console and/or the TCP connections have input ready.