diff options
Diffstat (limited to 'src/udp.h')
-rw-r--r-- | src/udp.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/udp.h b/src/udp.h new file mode 100644 index 0000000..3c82c29 --- /dev/null +++ b/src/udp.h | |||
@@ -0,0 +1,24 @@ | |||
1 | #ifndef UDP_H_ | ||
2 | #define UDP_H_ | ||
3 | |||
4 | #include "lsinet.h" | ||
5 | |||
6 | #define UDP_CLASS "luasocket(UDP socket)" | ||
7 | |||
8 | #define UDP_DATAGRAMSIZE 576 | ||
9 | |||
10 | #define UDP_FIELDS \ | ||
11 | INET_FIELDS; \ | ||
12 | int udp_connected | ||
13 | |||
14 | typedef struct t_udp_tag { | ||
15 | UDP_FIELDS; | ||
16 | } t_udp; | ||
17 | typedef t_udp *p_udp; | ||
18 | |||
19 | void udp_inherit(lua_State *L, cchar *lsclass); | ||
20 | void udp_construct(lua_State *L, p_udp udp); | ||
21 | void udp_open(lua_State *L); | ||
22 | p_udp udp_push(lua_State *L); | ||
23 | |||
24 | #endif | ||