in reply to how can I timeout a function like "read" when reading from a socket

I would use select(). The fourth argument of select() indicates the timeout.

Abigail

  • Comment on Re: how can I timeout a function like "read" when reading from a socket