diff --git a/README.md b/README.md new file mode 100644 index 0000000..35f8c22 --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +## for correction + +## ressources + +- https://medium.com/from-the-scratch/http-server-what-do-you-need-to-know-to-build-a-simple-http-server-from-scratch-d1ef8945e4fa diff --git a/srcs/main.cpp b/srcs/main.cpp index 8b13789..3193654 100644 --- a/srcs/main.cpp +++ b/srcs/main.cpp @@ -1 +1,15 @@ +# include // errno +# include // perror +# include // socket, accept, listen, send, recv, bind, connect, setsockopt, getsockname + +int main() +{ + int server_fd; + if (server_fd = socket(domain, type, protocol) + { + perror("cannot create socket"); + return 0; + } + return 0; +}