luasocket/src/unix.h

27 lines
599 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.
\*=========================================================================*/
2019-02-25 23:55:36 +01:00
#include "luasocket.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;
2019-02-25 23:55:36 +01:00
LUASOCKET_API int luaopen_socket_unix(lua_State *L);
2004-06-22 18:12:53 +02:00
#endif /* UNIX_H */