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

#include <lua.h>

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

typedef struct t_tcp_ {
    t_sock sock;
    t_io io;
    t_buf buf;
    t_tm tm;
} t_tcp;
typedef t_tcp *p_tcp;

void tcp_open(lua_State *L);

#endif