epoll and timeouts



Hi all,

I am trying to figure out how to use epoll, and the part that I am
missing is how to set timeouts for individual sockets. I can see that
the timeout can be set in the epoll_wait, but it doesn't seem good
enough sinse different sockets are added to the epoll at different
time. Also I can't see anything among events that would be associated
with the timeout.

So where do I look next?

Thanks in advance for any advise.

Regards,
Arkadiy
.



Relevant Pages

  • Re: epoll and timeouts
    ... get any socket events. ... You know 'epoll' doesn't do timeouts, ... Keep your 'epoll' code and your timeout code completely separate. ... It's possible to store a void pointer with the ...
    (comp.unix.programmer)
  • Re: [PATCH 0/3] fixes for overflow in poll(), epoll(), and msec_to_jiffies()
    ... > After the discussion around epoll() timeout, I noticed that the functions used ... > to detect the timeout could themselves overflow for some values of HZ. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: epoll and timeouts
    ... missing is how to set timeouts for individual sockets. ... the timeout can be set in the epoll_wait, ... clients, and if any client doesn't send data for 10 seconds, you ...
    (comp.unix.programmer)