summaryrefslogtreecommitdiff
path: root/core/src/xmake/machine.c
diff options
context:
space:
mode:
authorruki <[email protected]>2019-10-15 00:54:17 +0800
committerruki <[email protected]>2019-10-14 23:25:43 +0800
commit7366683acf12cef49d82a37a809c2ed6e5b81459 (patch)
tree23b50d4a87e24700e0dbde44a1729ee705cc053f /core/src/xmake/machine.c
parent91bad8e2dbbe495f93cc14b56742d1af55c6d51b (diff)
add socket.accept
Diffstat (limited to 'core/src/xmake/machine.c')
-rw-r--r--core/src/xmake/machine.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/xmake/machine.c b/core/src/xmake/machine.c
index c1b1686b5..0a72b2456 100644
--- a/core/src/xmake/machine.c
+++ b/core/src/xmake/machine.c
@@ -115,6 +115,7 @@ 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_listen(lua_State* lua);
+tb_int_t xm_io_socket_accept(lua_State* lua);
tb_int_t xm_io_socket_connect(lua_State* lua);
tb_int_t xm_io_socket_close(lua_State* lua);
@@ -255,6 +256,7 @@ static luaL_Reg const g_io_functions[] =
, { "socket_wait", xm_io_socket_wait }
, { "socket_bind", xm_io_socket_bind }
, { "socket_listen", xm_io_socket_listen }
+, { "socket_accept", xm_io_socket_accept }
, { "socket_connect", xm_io_socket_connect }
, { "socket_close", xm_io_socket_close }
, { tb_null, tb_null }