[fpc-pascal]How to get read-timeouts when reading sockets?

Mirek Novak 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)

Mirek Novak

Michael Vogel píše:

> Hi!
>
> 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.
>
> Tschau!
>
> Michael
> --
> "Macht's gut und danke für den Fisch"
> Sig geändert zum Gedenken an Douglas Adams (1952 - 11.05.2001)
> http://www.douglasadams.com/
>
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mirek.novak.vcf
Type: text/x-vcard
Size: 203 bytes
Desc: Vizitka - Mirek Novak
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20010608/b75e1fbb/attachment.vcf>


More information about the fpc-pascal mailing list