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

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;
}