diff options
| author | ruki <[email protected]> | 2019-10-16 22:15:02 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-10-16 07:30:16 +0800 |
| commit | 74fe92ec5fab1725b139567f468f49cab4580888 (patch) | |
| tree | 4cb88fa26fe6580b6441f76b17b41e8cd393a85c /core/src/xmake/machine.c | |
| parent | 690dc274a4d5f9f443e6c2004b985b03345874d6 (diff) | |
add socket.recv
Diffstat (limited to 'core/src/xmake/machine.c')
| -rw-r--r-- | core/src/xmake/machine.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/xmake/machine.c b/core/src/xmake/machine.c index 9b9ede041..99a0cf18e 100644 --- a/core/src/xmake/machine.c +++ b/core/src/xmake/machine.c @@ -118,6 +118,7 @@ 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_send(lua_State* lua); +tb_int_t xm_io_socket_recv(lua_State* lua); tb_int_t xm_io_socket_close(lua_State* lua); // the path functions @@ -260,6 +261,7 @@ static luaL_Reg const g_io_functions[] = , { "socket_accept", xm_io_socket_accept } , { "socket_connect", xm_io_socket_connect } , { "socket_send", xm_io_socket_send } +, { "socket_recv", xm_io_socket_recv } , { "socket_close", xm_io_socket_close } , { tb_null, tb_null } }; |
