summaryrefslogtreecommitdiff
path: root/net.h
diff options
context:
space:
mode:
authorcflip <cflip@cflip.net>2023-07-09 11:57:13 -0600
committercflip <cflip@cflip.net>2023-07-09 11:57:13 -0600
commitc446378817e4d215ffd69f452f846fc5278f7943 (patch)
treeda4b68ef6f1fabf532100b6d23509881008e1bd3 /net.h
parentb67db2af4c3fd5bc8c612c6348c78323f5bf4b48 (diff)
Gracefully shut down server when interrupted with Ctrl+C
Diffstat (limited to 'net.h')
-rw-r--r--net.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/net.h b/net.h
index 92f61c4..481f520 100644
--- a/net.h
+++ b/net.h
@@ -7,6 +7,6 @@
#include "http.h"
int net_init_server(int);
-struct http_request net_next_request(int serverfd, int *clientfd);
+int net_next_request(int serverfd, int *clientfd, struct http_request *);
#endif