[fpc-pascal]How to get read-timeouts when reading sockets?
icarus at dabo.de
Fri Jun 8 12:02:12 CEST 2001
08.06.2001 10:51:04, "Thomas Schatzl" <tom_at_work at yline.com> wrote:
>You might try to have a look at the select() call.
At home I will take a look at it. It's in the crt-unit, isn't it?
Yesterday I haven't found any function that could help me ...
>Or set your socket to nonblocking mode via ioctl() (I guess you're
>programming with Linux ??)
Yeah. Sorry, I hadn't mentioned that.
>and poll for data in a loop (not recommened
>though since it hogs the cpu).
Urgh, no, that's not good.
"Macht's gut und danke für den Fisch"
Sig geändert zum Gedenken an Douglas Adams (1952 - 11.05.2001)
More information about the fpc-pascal