[fpc-pascal] lnet for TCP daemon

Marco van de Voort marcov at stack.nl
Thu Sep 12 14:45:34 CEST 2013


In our previous episode, Michael Schnell said:
> > The very reason I use Synapse is that it DOES NOT use threads.
> > Synapse is simple to use. Keep it so.
> 
> Of  course I don't vote for Synapse always using threads, but to provide 
> _additional_ functions / objects (maybe units) that work similar to 
> AsyncPro (TCP/IP and serial streams). Plus maybe more sophisticated 
> _additional_ objects that in internal threads handle complete protocols 
> and provide appropriate  MainThread events to the user program.

E.g. TComport only starts an helper thread if you register receive events.

If you do not, you can use it in a select/waitformultiple like way in a
thread.




More information about the fpc-pascal mailing list