aboutsummaryrefslogtreecommitdiff
path: root/vendor/luasocket/src/unix.h
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/luasocket/src/unix.h')
-rw-r--r--vendor/luasocket/src/unix.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/vendor/luasocket/src/unix.h b/vendor/luasocket/src/unix.h
new file mode 100644
index 00000000..c2035618
--- /dev/null
+++ b/vendor/luasocket/src/unix.h
@@ -0,0 +1,26 @@
1#ifndef UNIX_H
2#define UNIX_H
3/*=========================================================================*\
4* Unix domain object
5* LuaSocket toolkit
6*
7* This module is just an example of how to extend LuaSocket with a new
8* domain.
9\*=========================================================================*/
10#include "luasocket.h"
11
12#include "buffer.h"
13#include "timeout.h"
14#include "socket.h"
15
16typedef struct t_unix_ {
17 t_socket sock;
18 t_io io;
19 t_buffer buf;
20 t_timeout tm;
21} t_unix;
22typedef t_unix *p_unix;
23
24LUASOCKET_API int luaopen_socket_unix(lua_State *L);
25
26#endif /* UNIX_H */