aboutsummaryrefslogtreecommitdiff
path: root/src/udp.h
blob: 4ba53e6af76c28ded593382d630bf49bccf92a81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef UDP_H
#define UDP_H

#include <lua.h>

#include "tm.h"
#include "sock.h"

#define UDP_DATAGRAMSIZE 576

typedef struct t_udp_ {
    t_sock sock;
    t_tm tm;
} t_udp;
typedef t_udp *p_udp;

void udp_open(lua_State *L);

#endif