This commit is contained in:
Wolfgang Hottgenroth 2021-02-08 15:42:35 +01:00
parent b6df17ca9d
commit be9d042d64
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F

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