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

#include <sys/epoll.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 epoll_event *);
int handle_server(lua_State *, const int, const int);