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