[fpc-pascal]Nonblocking socket - end of socket

Michael Van Canneyt michael.vancanneyt at wisa.be
Tue Sep 16 13:03:22 CEST 2003


On Tue, 16 Sep 2003, [iso-8859-2] Balázs Csaba wrote:

> I use non-blocking socket (after initialization i used the fcntl function).
> Accept does not waiting for client connection, so i need not use threads, I
> can make it in the main thread.
> How can I be alerted when the client socket closed from the client side?

Using select() you can see this, normally.

> Can I use textfiles as SIN and SOUT?

Yes.

> Will the eof(SIN) wait for packet?

Not if the socket is non-blocking.

Michael.




More information about the fpc-pascal mailing list