diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-06-22 16:12:53 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-06-22 16:12:53 +0000 |
commit | 1ce47ebe3942a8b18b3b709f1ad915ac9ce82782 (patch) | |
tree | 7e78b55363929ecd43ac01a64dec6f22b2386215 /src/unix.h | |
parent | 7195ab620bd5029856a5c6c88e54a9a6eceb5e87 (diff) | |
download | luasocket-1ce47ebe3942a8b18b3b709f1ad915ac9ce82782.tar.gz luasocket-1ce47ebe3942a8b18b3b709f1ad915ac9ce82782.tar.bz2 luasocket-1ce47ebe3942a8b18b3b709f1ad915ac9ce82782.zip |
Added support for unix stream sockets.
Diffstat (limited to '')
-rw-r--r-- | src/unix.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/unix.h b/src/unix.h new file mode 100644 index 0000000..7b2a5c5 --- /dev/null +++ b/src/unix.h | |||
@@ -0,0 +1,28 @@ | |||
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 | * RCS ID: $Id$ | ||
11 | \*=========================================================================*/ | ||
12 | #include <lua.h> | ||
13 | |||
14 | #include "buffer.h" | ||
15 | #include "timeout.h" | ||
16 | #include "socket.h" | ||
17 | |||
18 | typedef struct t_unix_ { | ||
19 | t_sock sock; | ||
20 | t_io io; | ||
21 | t_buf buf; | ||
22 | t_tm tm; | ||
23 | } t_unix; | ||
24 | typedef t_unix *p_unix; | ||
25 | |||
26 | int unix_open(lua_State *L); | ||
27 | |||
28 | #endif /* UNIX_H */ | ||