new server "sj3proxy".

this server is communicating between unix domain and inet.
This commit is contained in:
iratqq 2008-02-02 13:25:16 +00:00
commit 7e097c2015
16 changed files with 738 additions and 21 deletions

View file

@ -119,3 +119,11 @@ sj2lua_string(lua_State *lstate, char *name, char *s)
lua_pushstring(lstate, s);
lua_settable(lstate, -3);
}
void
set_luafunction(lua_State *lstate, char *name, lua_CFunction fun)
{
lua_pushstring(lstate, name);
lua_pushcfunction(lstate, fun);
lua_settable(lstate, -3);
}