summaryrefslogtreecommitdiffhomepage
path: root/plop.h
blob: c12b43b64e3eb2603db475d509bded328dc074c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#pragma once

#include <poll.h>

#include <lua.h>

#include "http.h"
#include "request.h"

int make_server(const char *, const char *);
int load_handler(lua_State *, const char *);
int handle_client(lua_State *, struct pollfd *, struct request **, const int);
int handle_server(struct pollfd *, int, const int);