diff options
Diffstat (limited to 'src/udp.h')
-rw-r--r-- | src/udp.h | 17 |
1 files changed, 15 insertions, 2 deletions
@@ -1,6 +1,19 @@ | |||
1 | #ifndef UDP_H | 1 | #ifndef UDP_H |
2 | #define UDP_H | 2 | #define UDP_H |
3 | 3 | /*=========================================================================*\ | |
4 | * UDP object | ||
5 | * LuaSocket toolkit | ||
6 | * | ||
7 | * The udp.h module provides LuaSocket with support for UDP protocol | ||
8 | * (AF_INET, SOCK_DGRAM). | ||
9 | * | ||
10 | * Two classes are defined: connected and unconnected. UDP objects are | ||
11 | * originally unconnected. They can be "connected" to a given address | ||
12 | * with a call to the setpeername function. The same function can be used to | ||
13 | * break the connection. | ||
14 | * | ||
15 | * RCS ID: $Id$ | ||
16 | \*=========================================================================*/ | ||
4 | #include <lua.h> | 17 | #include <lua.h> |
5 | 18 | ||
6 | #include "timeout.h" | 19 | #include "timeout.h" |
@@ -16,4 +29,4 @@ typedef t_udp *p_udp; | |||
16 | 29 | ||
17 | void udp_open(lua_State *L); | 30 | void udp_open(lua_State *L); |
18 | 31 | ||
19 | #endif | 32 | #endif /* UDP_H */ |