1
0
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:
david
2009-02-23 23:57:39 +00:00
parent b819aa7f25
commit a173fe6ce1
6 changed files with 57 additions and 0 deletions

View File

@@ -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;
}