Mercurial > luasocket
comparison src/unix.h @ 0:4b915342e2a8
LuaSocket 2.0.2 + CMake build description.
author | Eric Wing <ewing . public |-at-| gmail . com> |
---|---|
date | Tue, 26 Aug 2008 18:40:01 -0700 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4b915342e2a8 |
---|---|
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: unix.h,v 1.9 2006/03/13 07:16:39 diego Exp $ | |
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_socket sock; | |
20 t_io io; | |
21 t_buffer buf; | |
22 t_timeout tm; | |
23 } t_unix; | |
24 typedef t_unix *p_unix; | |
25 | |
26 int luaopen_socket_unix(lua_State *L); | |
27 | |
28 #endif /* UNIX_H */ |