diff options
| author | mniip <mniip@mniip.com> | 2013-05-02 18:41:01 (GMT) |
|---|---|---|
| committer | mniip <mniip@mniip.com> | 2013-05-02 18:41:01 (GMT) |
| commit | e7b29ab9b5e037a8896c62f0473cae8d353d5114 (patch) | |
| tree | 503fc881969e57cb521fbf551fcede513c1f12fe /src/socket/unix.h | |
| parent | 2eaed9c9d478292f18d8a6aea9d2c9c869b26911 (diff) | |
| download | powder-e7b29ab9b5e037a8896c62f0473cae8d353d5114.zip powder-e7b29ab9b5e037a8896c62f0473cae8d353d5114.tar.gz | |
statically linked, or better to say, builtin luasocket
Diffstat (limited to 'src/socket/unix.h')
| -rw-r--r-- | src/socket/unix.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/socket/unix.h b/src/socket/unix.h new file mode 100644 index 0000000..32b7380 --- /dev/null +++ b/src/socket/unix.h @@ -0,0 +1,28 @@ +#ifndef UNIX_H +#define UNIX_H +/*=========================================================================*\ +* Unix domain object +* LuaSocket toolkit +* +* This module is just an example of how to extend LuaSocket with a new +* domain. +* +* RCS ID: $Id: unix.h,v 1.9 2006/03/13 07:16:39 diego Exp $ +\*=========================================================================*/ +#include "lua.h" + +#include "buffer.h" +#include "timeout.h" +#include "socket.h" + +typedef struct t_unix_ { + t_socket sock; + t_io io; + t_buffer buf; + t_timeout tm; +} t_unix; +typedef t_unix *p_unix; + +int luaopen_socket_unix(lua_State *L); + +#endif /* UNIX_H */ |
