summaryrefslogtreecommitdiffhomepage
path: root/connection.h
blob: 3a7b32a9ecbb93d4d86bef26cedeb5bd87c70c18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

#include <lua.h>

#include "request.h"

struct connection
{
	int fd;
	int lua_ref;
	lua_State * L;
	struct request * request;
};

struct connection * connection_new(lua_State *, const int);
void connection_clear(struct connection *);
void connection_free(lua_State *, struct connection *);