This commit is contained in:
Wolfgang Hottgenroth 2021-02-08 15:42:35 +01:00
parent caef0253c7
commit a143657263

View File

@ -1,11 +1,12 @@
#include <stdio.h> #include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <string.h> #include <string.h>
int main() { int main() {
int sockfd; int sockfd;
struct sockaddr_in servaddr; struct sockaddr servaddr;
sockfd = socket(AF_INET, SOCK_DGRAM, 0); sockfd = socket(AF_INET, SOCK_DGRAM, 0);