summaryrefslogtreecommitdiff
path: root/core/src/xmake/machine.c
diff options
context:
space:
mode:
authorruki <[email protected]>2019-10-14 22:18:00 +0800
committerruki <[email protected]>2019-10-14 07:48:01 +0800
commit95df8418962d8dae106e52d35405c61bdbf4bada (patch)
treea218e6de7c39c0b81c8e6c5ea16eca61c5c02520 /core/src/xmake/machine.c
parent4041c5a3a47da126f7a97e09cee7b5b3f3fd8978 (diff)
add socket.wait
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 5887b0477..462ff62ef 100644
--- a/core/src/xmake/machine.c
+++ b/core/src/xmake/machine.c
@@ -112,6 +112,7 @@ tb_int_t xm_io_filelock_close(lua_State* lua);
// the io/socket functions
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_connect(lua_State* lua);
tb_int_t xm_io_socket_close(lua_State* lua);
@@ -249,6 +250,7 @@ static luaL_Reg const g_io_functions[] =
, { "filelock_close", xm_io_filelock_close }
, { "socket_open", xm_io_socket_open }
, { "socket_rawfd", xm_io_socket_rawfd }
+, { "socket_wait", xm_io_socket_wait }
, { "socket_connect", xm_io_socket_connect }
, { "socket_close", xm_io_socket_close }
, { tb_null, tb_null }