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:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user