Remove notes

This commit is contained in:
momo5502
2024-11-09 21:41:13 +01:00
parent 040fcff19a
commit 980ffd5348

View File

@@ -93,17 +93,6 @@ namespace
pfd.events |= POLLWRNORM;
}
/*if ((pfd.events & POLLRDNORM) != 0)
handle.PollEvents |= (AFD_POLL_ACCEPT | AFD_POLL_RECEIVE);
if ((pfd.events & POLLRDBAND) != 0)
handle.PollEvents |= AFD_POLL_RECEIVE_EXPEDITED;
if ((pfd.events & POLLWRNORM) != 0)
handle.PollEvents |= (AFD_POLL_CONNECT_FAIL | AFD_POLL_SEND);
handle.PollEvents |= (AFD_POLL_DISCONNECT | AFD_POLL_ABORT);*/
// -----------------------------
pfd.fd = endpoints[i];
pfd.events = POLLIN;
pfd.revents = pfd.events;
@@ -156,19 +145,6 @@ namespace
events |= AFD_POLL_LOCAL_CLOSE;
}
/*if ((handle.PollEvents & (AFD_POLL_ACCEPT | AFD_POLL_RECEIVE)) != 0 && (pfd.events & POLLRDNORM) != 0)
pfd.revents |= POLLRDNORM;
if ((handle.PollEvents & AFD_POLL_RECEIVE_EXPEDITED) != 0 && (pfd.events & POLLRDBAND) != 0)
pfd.revents |= POLLRDBAND;
if ((handle.PollEvents & (AFD_POLL_CONNECT_FAIL | AFD_POLL_SEND)) != 0 && (pfd.events & POLLWRNORM) != 0)
pfd.revents |= POLLWRNORM;
if ((handle.PollEvents & AFD_POLL_DISCONNECT) != 0)
pfd.revents |= POLLHUP;
if ((handle.PollEvents & (AFD_POLL_CONNECT_FAIL | AFD_POLL_ABORT)) != 0)
pfd.revents |= POLLHUP | POLLERR;
if ((handle.PollEvents & AFD_POLL_LOCAL_CLOSE) != 0)
pfd.revents |= POLLNVAL;*/
auto entry = handle_info_obj.read(i);
entry.PollEvents = events;
entry.Status = STATUS_SUCCESS;