3 /*=========================================================================*\
7 * The udp.h module provides LuaSocket with support for UDP protocol
8 * (AF_INET, SOCK_DGRAM).
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 \*=========================================================================*/
20 /* can't be larger than wsocket.c MAXCHUNK!!! */
21 #define UDP_DATAGRAMSIZE 8192
23 typedef struct t_udp_
{
30 int udp_open(lua_State
*L
);