IHMO, the optimum way to handle waiting on sockets, pipes, asnyc interfaces and similar stuff is to do a blocking read in a thread, use QueueAsyncCall() to notify the main thread (i.e. throw an event) when something has arrived and use a TThreadList (or something similar) to transfer the data from the worker thread to the main thread.

I do know that this works fine with Windows and Linux.

I have no idea about CE (and never will).

-Michael

--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to