From 3f562b10d7e7eff3b3aa9fd81453c31f9c01a333 Mon Sep 17 00:00:00 2001 From: ame Date: Thu, 18 Jan 2024 14:08:57 -0600 Subject: almost working http server! --- src/reg.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/reg.c') diff --git a/src/reg.c b/src/reg.c index 10c9e33..a9c07bb 100644 --- a/src/reg.c +++ b/src/reg.c @@ -4,7 +4,7 @@ #include "config.h" #include "io.h" #include "math.h" - +#include "net.h" int luaopen_llib(lua_State* L) { lua_newtable(L); @@ -28,6 +28,10 @@ int luaopen_llib(lua_State* L) { lua_newtable(L); luaL_register(L, NULL, config_function_list); lua_setfield(L, 2, "config"); + + lua_newtable(L); + luaL_register(L, NULL, net_function_list); + lua_setfield(L, 2, "net"); //make llib global lua_setglobal(L, "llib"); return 1; -- cgit v1.2.3