summaryrefslogtreecommitdiff
path: root/core/src/xmake/machine.c
diff options
context:
space:
mode:
authorruki <[email protected]>2019-10-16 00:48:50 +0800
committerruki <[email protected]>2019-10-15 22:53:03 +0800
commit690dc274a4d5f9f443e6c2004b985b03345874d6 (patch)
tree43b6ba534d331325ca8d4022994bda75e496e5eb /core/src/xmake/machine.c
parente915ad63a7f1a9fa4736472c60b0550cbd174361 (diff)
add socket.send
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 0a72b2456..9b9ede041 100644
--- a/core/src/xmake/machine.c
+++ b/core/src/xmake/machine.c
@@ -117,6 +117,7 @@ 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_send(lua_State* lua);
tb_int_t xm_io_socket_close(lua_State* lua);
// the path functions
@@ -258,6 +259,7 @@ static luaL_Reg const g_io_functions[] =
, { "socket_listen", xm_io_socket_listen }
, { "socket_accept", xm_io_socket_accept }
, { "socket_connect", xm_io_socket_connect }
+, { "socket_send", xm_io_socket_send }
, { "socket_close", xm_io_socket_close }
, { tb_null, tb_null }
};