tmp
This commit is contained in:
5
README.md
Normal file
5
README.md
Normal 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
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user