summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index e69de29..43d5b88 100644
--- a/src/main.c
+++ b/src/main.c
@@ -0,0 +1,12 @@
+#include <stdio.h>
+#include <sys/socket.h>
+
+int main() {
+ int server = socket(AF_INET, SOCK_STREAM, 0);
+ if (server == -1) {
+ perror("could not open socket");
+ return 1;
+ }
+ printf("hello world\n");
+ return 0;
+}