On 09/05/2012 10:01 AM, Antonio Fortuny wrote: > > My own solution tends to use a thread yep. Yep. IMHO using a thread for each TCP/IP Port (or serial interface or pipe or...) and doing a blocking read is the only decent (and rather portable) way to handle an incoming data stream from those devices. -Michael