summaryrefslogtreecommitdiffhomepage
path: root/src/reqs.h
diff options
context:
space:
mode:
authorrofl0r <rofl0r@users.noreply.github.com>2020-09-14 21:59:27 +0100
committerrofl0r <rofl0r@users.noreply.github.com>2020-09-15 23:12:00 +0100
commit0c8275a90ed16c4230fb311aebbf34c5667667c7 (patch)
treea3b8db70e0acdeff76fd0b04b9bc4e0745b76b42 /src/reqs.h
parent5779ba8697f16afa2b8fe042a409f192161b7706 (diff)
refactor conns.[ch], put conn_s into child struct
this allows to access the conn member from the main thread handling the childs, plus simplifies the code.
Diffstat (limited to 'src/reqs.h')
-rw-r--r--src/reqs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/reqs.h b/src/reqs.h
index c1c5100..4a0374f 100644
--- a/src/reqs.h
+++ b/src/reqs.h
@@ -24,6 +24,7 @@
#include "common.h"
#include "sock.h"
+#include "conns.h"
/*
* Port constants for HTTP (80) and SSL (443)
@@ -44,6 +45,6 @@ struct request_s {
char *path;
};
-extern void handle_connection (int fd, union sockaddr_union* addr);
+extern void handle_connection (struct conn_s *, union sockaddr_union* addr);
#endif