1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-20 14:39:02 +00:00

New function msevent_timedout().

This commit is contained in:
henri
2013-05-12 13:39:45 +00:00
parent 8475cef210
commit 81fda37f89
3 changed files with 13 additions and 5 deletions

View File

@@ -506,3 +506,9 @@ const char *nse_status2str(enum nse_status status) {
}
}
int msevent_timedout(msevent *nse) {
if (nse->event_done)
return 0;
return (nse->timeout.tv_sec && !TIMEVAL_AFTER(nse->timeout, nsock_tod));
}