aboutsummaryrefslogtreecommitdiff
path: root/src/socket.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/socket.h')
-rw-r--r--src/socket.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/socket.h b/src/socket.h
new file mode 100644
index 0000000..c9dee20
--- /dev/null
+++ b/src/socket.h
@@ -0,0 +1,18 @@
1#ifndef SOCK_H_
2#define SOCK_H_
3
4#include <lua.h>
5#include "lsfd.h"
6
7#define SOCK_CLASS "luasocket(sock)"
8
9#define SOCK_FIELDS FD_FIELDS
10
11typedef t_fd t_sock;
12typedef t_sock *p_sock;
13
14void sock_open(lua_State *L);
15void sock_construct(lua_State *L, p_sock sock);
16void sock_inherit(lua_State *L, cchar *lsclass);
17
18#endif /* SOCK_H_ */