luasocket/src/unix.h

31 lines
637 B
C
Raw Normal View History

2004-06-22 18:12:53 +02:00
#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.
\*=========================================================================*/
2005-09-29 08:11:42 +02:00
#include "lua.h"
2004-06-22 18:12:53 +02:00
#include "buffer.h"
#include "timeout.h"
#include "socket.h"
2013-06-11 11:20:27 +02:00
#ifndef UNIX_API
#define UNIX_API extern
#endif
2004-06-22 18:12:53 +02:00
typedef struct t_unix_ {
2006-03-13 08:16:39 +01:00
t_socket sock;
2004-06-22 18:12:53 +02:00
t_io io;
2006-03-13 08:16:39 +01:00
t_buffer buf;
t_timeout tm;
2004-06-22 18:12:53 +02:00
} t_unix;
typedef t_unix *p_unix;
2013-06-11 11:20:27 +02:00
UNIX_API int luaopen_socket_unix(lua_State *L);
2004-06-22 18:12:53 +02:00
#endif /* UNIX_H */