summaryrefslogtreecommitdiff
path: root/app/v3_c/src/myhttpd.c
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2011-01-22 16:25:08 +0000
committerLudovic Pouzenc <ludovic@pouzenc.fr>2011-01-22 16:25:08 +0000
commitcebbe1cd7fe8be10d51a1d8fc4007407b1ba77c7 (patch)
treee8fe44f46d58522b2f2148cb575cc89fc9ba6ad7 /app/v3_c/src/myhttpd.c
parent738943804f2e4005e1948ed19e0d02e4cd1df431 (diff)
download2011-usi-cebbe1cd7fe8be10d51a1d8fc4007407b1ba77c7.tar.gz
2011-usi-cebbe1cd7fe8be10d51a1d8fc4007407b1ba77c7.tar.bz2
2011-usi-cebbe1cd7fe8be10d51a1d8fc4007407b1ba77c7.zip
Première version du projet qui compile ! (utilise CMake)
git-svn-id: file:///var/svn/2011-usi/trunk@10 db941bf7-0cb3-4dda-9634-87faf64f93a7
Diffstat (limited to 'app/v3_c/src/myhttpd.c')
-rw-r--r--app/v3_c/src/myhttpd.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/app/v3_c/src/myhttpd.c b/app/v3_c/src/myhttpd.c
new file mode 100644
index 0000000..d662dd3
--- /dev/null
+++ b/app/v3_c/src/myhttpd.c
@@ -0,0 +1,21 @@
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <arpa/inet.h>
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <errno.h>
+
+#include "myhttpd.h"
+
+int main() {
+ //int res;
+
+ int sockServ;
+
+ sockServ = socket(AF_INET, SOCK_STREAM, 0);
+ if (sockServ -1) { perror("socket"); exit(1); }
+
+ return 0;
+}