> So if I use a thread to read data from the socket, how do I signal to 
the main application that data are arriving using an event?

Exactly, using an event:
http://www.freepascal.org/docs-html/fcl/syncobjs/tevent.html
Here's an example of how to use:
RoundRobinExample.zip
<http://free-pascal-lazarus.989080.n3.nabble.com/file/n4044829/RoundRobinExample.zip>
  



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-How-does-one-add-an-event-to-a-blocking-system-tp4044826p4044829.html
Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com.

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

Reply via email to