base
This commit is contained in:
parent
85b536f929
commit
428a26017f
|
@ -0,0 +1,15 @@
|
|||
#include <arpa/inet.h>
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/socket.h>
|
||||
|
||||
int main() {
|
||||
int sockfd = socket(AF_INET, SOCK_STREAM, 0);
|
||||
if(sockfd == -1) {
|
||||
perror("webserve (socket)");
|
||||
return 1;
|
||||
}
|
||||
printf("socket created successfully\n");
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue