]> git.sesse.net Git - jam/commitdiff
Begin!
authorsgunderson@bigfoot.com <>
Wed, 31 Jan 2007 15:58:59 +0000 (16:58 +0100)
committersgunderson@bigfoot.com <>
Wed, 31 Jan 2007 15:58:59 +0000 (16:58 +0100)
jam.c [new file with mode: 0644]

diff --git a/jam.c b/jam.c
new file mode 100644 (file)
index 0000000..a25f80c
--- /dev/null
+++ b/jam.c
@@ -0,0 +1,16 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <pthread.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+
+int main()
+{
+       int server_sock = socket(PF_INET, SOCK_STREAM, IPPROTO_TCP);
+       if (server_sock == -1) {
+               perror("socket()");
+               exit(1);
+       }
+
+       exit(0);
+}