mirror of
https://github.com/nmap/nmap.git
synced 2026-01-26 16:19:03 +00:00
Add the stdnse.sleep function.
This commit is contained in:
@@ -562,3 +562,17 @@ int luaopen_nmap (lua_State *L)
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* Register C functions that belong in the stdnse namespace. They are loaded
|
||||
from here in stdnse.lua. */
|
||||
int luaopen_stdnse_c (lua_State *L)
|
||||
{
|
||||
static const luaL_reg stdnse_clib [] = {
|
||||
{"sleep", l_nsock_sleep},
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
luaL_register(L, "stdnse.c", stdnse_clib);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user