diff options
author | rofl0r <rofl0r@users.noreply.github.com> | 2020-09-14 21:59:27 +0100 |
---|---|---|
committer | rofl0r <rofl0r@users.noreply.github.com> | 2020-09-15 23:12:00 +0100 |
commit | 0c8275a90ed16c4230fb311aebbf34c5667667c7 (patch) | |
tree | a3b8db70e0acdeff76fd0b04b9bc4e0745b76b42 /src/reqs.h | |
parent | 5779ba8697f16afa2b8fe042a409f192161b7706 (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.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |