aboutsummaryrefslogtreecommitdiff
path: root/src/socket.h
blob: 9972639fd3ac747dba67553181868e173a943850 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*=========================================================================*\
* Socket class: inherits from the File Descriptor class and is here just
* for extensibility in the future
*
* RCS ID: $id$
\*=========================================================================*/
#ifndef SOCK_H_
#define SOCK_H_ 

#include <lua.h>
#include "lsfd.h"

#define SOCK_CLASS "luasocket(sock)"

#define SOCK_FIELDS FD_FIELDS

typedef t_fd t_sock;
typedef t_sock *p_sock;

void sock_open(lua_State *L);
void sock_construct(lua_State *L, p_sock sock);
void sock_inherit(lua_State *L, cchar *lsclass);

#endif /* SOCK_H_ */