I am working on a network programming using epoll. I was wondering the best way to detect user disconnection. Right now, I am using select with timeout to see if there is a signal in the receive buffer and there is no signal for a certain amount of time then it closes the socket connection.
I think there might be something else more suitable for epoll instead of using select.
Thanks in advance..