Added support for unix stream sockets.
This commit is contained in:
parent
7195ab620b
commit
1ce47ebe39
6 changed files with 457 additions and 3 deletions
28
src/unix.h
Normal file
28
src/unix.h
Normal file
|
@ -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$
|
||||
\*=========================================================================*/
|
||||
#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 */
|
Loading…
Add table
Add a link
Reference in a new issue