summaryrefslogtreecommitdiff
path: root/server.h
diff options
context:
space:
mode:
authorJohnny Richard <johnny@johnnyrichard.com>2022-04-07 14:36:21 +0200
committerJohnny Richard <johnny@johnnyrichard.com>2022-04-07 14:36:21 +0200
commit33e14b74df70ecbfcdb56b71a0ea7d4f1e05b1f4 (patch)
tree46b8d456a6eda31b90ec1b2282bc696e03bd7f86 /server.h
parentb3b3d2f7a9365a1c9c4ccdf9ffa8f0bcf83f1080 (diff)
server.c: Create server struct
Diffstat (limited to 'server.h')
-rw-r--r--server.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/server.h b/server.h
new file mode 100644
index 0000000..1b788dd
--- /dev/null
+++ b/server.h
@@ -0,0 +1,12 @@
+#ifndef SERVER_H
+#define SERVER_H
+
+#include <stdint.h>
+
+typedef struct server {
+ int fd;
+} server_t;
+
+server_t server_create(uint32_t port);
+
+#endif /* SERVER_H */