summaryrefslogtreecommitdiff
path: root/net.h
diff options
context:
space:
mode:
authorcflip <cflip@cflip.net>2023-05-27 12:08:00 -0600
committercflip <cflip@cflip.net>2023-05-27 12:08:00 -0600
commitbeb8db73aadbd7d0464f1530ef86c961bc1aa2a0 (patch)
treef23f25ac01c23435a51c5b296240a918678ace51 /net.h
parentb0f6f511e23117965e80c1c3516dee2402b81dc5 (diff)
Split cfws.c into multiple files
Diffstat (limited to 'net.h')
-rw-r--r--net.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/net.h b/net.h
new file mode 100644
index 0000000..8b9e72a
--- /dev/null
+++ b/net.h
@@ -0,0 +1,10 @@
+#ifndef _H_NET
+#define _H_NET
+
+#define CFWS_MAXCONN 10 /* Max connections allowed by listen(). */
+#define CFWS_MAXREAD 1024 /* Size of buffer used for reading from client. */
+
+int initialize_server(int);
+void handle_connection(int);
+
+#endif