mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-10-01 16:16:39 +02:00
25 lines
425 B
C
25 lines
425 B
C
|
#ifndef UDP_H_
|
||
|
#define UDP_H_
|
||
|
|
||
|
#include "lsinet.h"
|
||
|
|
||
|
#define UDP_CLASS "luasocket(UDP socket)"
|
||
|
|
||
|
#define UDP_DATAGRAMSIZE 576
|
||
|
|
||
|
#define UDP_FIELDS \
|
||
|
INET_FIELDS; \
|
||
|
int udp_connected
|
||
|
|
||
|
typedef struct t_udp_tag {
|
||
|
UDP_FIELDS;
|
||
|
} t_udp;
|
||
|
typedef t_udp *p_udp;
|
||
|
|
||
|
void udp_inherit(lua_State *L, cchar *lsclass);
|
||
|
void udp_construct(lua_State *L, p_udp udp);
|
||
|
void udp_open(lua_State *L);
|
||
|
p_udp udp_push(lua_State *L);
|
||
|
|
||
|
#endif
|