[fpc-pascal]How to get read-timeouts when reading sockets?
mirek.novak at auto.cz
Fri Jun 8 10:35:16 CEST 2001
On both platforms (Linux/Win) u have to use Select (see FPC manual
Reference Guide for linux platform)
Michael Vogel píše:
> Yesterday evening I tried to build a little telnet-program, just to
> test the IP-socket-implementation.
> I took the finger-sourcecode, but I got the problem, that I couldn't
> determine if there were any data left to read. The eof seems to occur
> only when the socket is closed?
> Additionally it seems important to me that there is a timeout when
> waiting for data just because otherwise a non-standard answer could
> block this program.
> "Macht's gut und danke für den Fisch"
> Sig geändert zum Gedenken an Douglas Adams (1952 - 11.05.2001)
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 203 bytes
Desc: Vizitka - Mirek Novak
More information about the fpc-pascal