luasocket/src/unix.h

27 lines
593 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"
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;
LUASOCKET_API int luaopen_socket_unix(lua_State *L);
2004-06-22 18:12:53 +02:00
#endif /* UNIX_H */