This commit is contained in:
hugogogo
2022-07-12 14:46:55 +02:00
parent 8a7204b7a5
commit 79e5b24df6
2 changed files with 19 additions and 0 deletions

5
README.md Normal file
View File

@@ -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

View File

@@ -1 +1,15 @@
# include <cerrno> // errno
# include <cstdio> // perror
# include <sys/socket.h> // 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;
}