summaryrefslogtreecommitdiff
path: root/core/src/xmake/engine.c
diff options
context:
space:
mode:
authorruki <[email protected]>2022-04-04 23:41:22 +0800
committerruki <[email protected]>2022-04-04 23:41:22 +0800
commitd19a15f735dbc8b07bed1178e1a077b495179a07 (patch)
tree576969f8ae155ed689d0826e39e10be03cc91e91 /core/src/xmake/engine.c
parentd7115ae9ce36bf98d54d4c48705c304f543c8c7b (diff)
add socket.ctrl
Diffstat (limited to 'core/src/xmake/engine.c')
-rw-r--r--core/src/xmake/engine.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/xmake/engine.c b/core/src/xmake/engine.c
index 2f4efd60c..005d2eebe 100644
--- a/core/src/xmake/engine.c
+++ b/core/src/xmake/engine.c
@@ -142,6 +142,7 @@ tb_int_t xm_io_socket_open(lua_State* lua);
tb_int_t xm_io_socket_rawfd(lua_State* lua);
tb_int_t xm_io_socket_wait(lua_State* lua);
tb_int_t xm_io_socket_bind(lua_State* lua);
+tb_int_t xm_io_socket_ctrl(lua_State* lua);
tb_int_t xm_io_socket_listen(lua_State* lua);
tb_int_t xm_io_socket_accept(lua_State* lua);
tb_int_t xm_io_socket_connect(lua_State* lua);
@@ -336,6 +337,7 @@ static luaL_Reg const g_io_functions[] =
, { "socket_rawfd", xm_io_socket_rawfd }
, { "socket_wait", xm_io_socket_wait }
, { "socket_bind", xm_io_socket_bind }
+, { "socket_ctrl", xm_io_socket_ctrl }
, { "socket_listen", xm_io_socket_listen }
, { "socket_accept", xm_io_socket_accept }
, { "socket_connect", xm_io_socket_connect }