[fpc-pascal]win32 server socket problem

Michael Van Canneyt michael.vancanneyt at wisa.be
Fri Aug 15 13:07:34 CEST 2003


On Fri, 15 Aug 2003, [iso-8859-2] Balázs Csaba wrote:

> Yes, maybe it is a text file problem, but I cannot solve it. Did somebody
> make same program on win32?
> Could I try it with recv(), send()? In this case how can i detect the end of
> communication?

Normally, with select() you can determine whether there is data.
with recv() and the MSG_PEEK flag, you can have a peek. This should
return 0 if there is no data or the connection was closed.

Michael.





More information about the fpc-pascal mailing list