[fpc-devel] Odyssey: SSockets and Threads.

silvioprog silvioprog at gmail.com
Mon Apr 29 19:48:59 CEST 2013

> Ludo Brands ludo.brands at free.fr
> Fri Apr 26 19:25:52 CEST 2013
> If your socket is in blocking mode and you don't want your thread to
> block, yes. Server or client, there is no difference.
> The same for send. When you have a small block to send that fits in the
> socket buffer and the socket buffer is empty, send will return
> immediately. But if you have more data to send, your second send will
> block until the first send is completed.
> The same select can be used to return when the recv buffer is not empty
> or the send buffer empty  or when an exception occurs. See
> http://linux.die.net/man/2/select
> Ludo

I had not seen this reply, thanks for the explanation, Ludo. :)

Silvio Cl├ęcio
My public projects - github.com/silvioprog
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20130429/c7634e98/attachment.html>

More information about the fpc-devel mailing list