-
Notifications
You must be signed in to change notification settings - Fork 1
/
luasocket.c
64 lines (53 loc) · 972 Bytes
/
luasocket.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// LuaSocket
#include "luasocket.h"
#include "luasocket/src/mime.h"
int luaopen_socket(lua_State * L)
{
#include "luasocket/src/socket.lua.h"
return 1;
}
int luaopen_socket_ftp(lua_State * L)
{
#include "luasocket/src/ftp.lua.h"
return 1;
}
int luaopen_socket_http(lua_State * L)
{
#include "luasocket/src/http.lua.h"
return 1;
}
int luaopen_ltn12(lua_State * L)
{
#include "luasocket/src/ltn12.lua.h"
return 1;
}
int luaopen_mime(lua_State * L)
{
#include "luasocket/src/mime.lua.h"
return 1;
}
int luaopen_socket_smtp(lua_State * L)
{
#include "luasocket/src/smtp.lua.h"
return 1;
}
int luaopen_socket_tp(lua_State * L)
{
#include "luasocket/src/tp.lua.h"
return 1;
}
int luaopen_socket_url(lua_State * L)
{
#include "luasocket/src/url.lua.h"
return 1;
}
int luaopen_socket_headers(lua_State * L)
{
#include "luasocket/src/headers.lua.h"
return 1;
}
int luaopen_socket_mbox(lua_State * L)
{
#include "luasocket/src/mbox.lua.h"
return 1;
}