diff options
| author | ruki <[email protected]> | 2019-10-28 22:37:25 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-10-28 09:44:32 +0800 |
| commit | da73a6e5c04c70fd4c49d7502fafd225d9a13ab5 (patch) | |
| tree | 58f09d93af509b61a9c3f1d7f952e3d79d23f8d8 /core/src/xmake/machine.c | |
| parent | 444f458546dc9b46a6e3d264f75da31b5bc4431d (diff) | |
add socket.sendfile
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 99a0cf18e..4319023cc 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_sendfile(lua_State* lua); tb_int_t xm_io_socket_recv(lua_State* lua); tb_int_t xm_io_socket_close(lua_State* lua); @@ -261,6 +262,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_sendfile", xm_io_socket_sendfile } , { "socket_recv", xm_io_socket_recv } , { "socket_close", xm_io_socket_close } , { tb_null, tb_null } |
