mirror of
https://github.com/lunarmodules/luasocket.git
synced 2025-02-13 15:32:52 +01:00
29 lines
576 B
C
29 lines
576 B
C
|
#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$
|
||
|
\*=========================================================================*/
|
||
|
#include <lua.h>
|
||
|
|
||
|
#include "buffer.h"
|
||
|
#include "timeout.h"
|
||
|
#include "socket.h"
|
||
|
|
||
|
typedef struct t_unix_ {
|
||
|
t_sock sock;
|
||
|
t_io io;
|
||
|
t_buf buf;
|
||
|
t_tm tm;
|
||
|
} t_unix;
|
||
|
typedef t_unix *p_unix;
|
||
|
|
||
|
int unix_open(lua_State *L);
|
||
|
|
||
|
#endif /* UNIX_H */
|