[Lazarus] lnet sockets

Michael Schnell mschnell at lumino.de
Wed Oct 24 15:14:20 CEST 2012


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




More information about the Lazarus mailing list