I want to be notified or at least check periodically if a libsocket::inet_stream created by a libsocket::inet_stream_server::accept() is closed.
I tried fcntl but it does not seem to work.
int r;
r = fcntl(cli_sock->getfd(), F_GETFL);
if (r == -1)
is_ok = false;
I want to be notified or at least check periodically if a
libsocket::inet_streamcreated by alibsocket::inet_stream_server::accept()is closed.I tried
fcntlbut it does not seem to work.