diff options
Diffstat (limited to 'client/net/net.c')
| -rw-r--r-- | client/net/net.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/net/net.c b/client/net/net.c index be61104..7f6332e 100644 --- a/client/net/net.c +++ b/client/net/net.c @@ -1,13 +1,12 @@ #include <stdio.h> #include <stdlib.h> -#include <err.h> -#include <sys/socket.h> -#include <unistd.h> -#include <netinet/in.h> #include <time.h> #include "net.h" +#include "net_compat.h" void ServerConnect() { + net_init(); + int fd = socket(AF_INET, SOCK_DGRAM, 0); if (fd == -1) @@ -23,4 +22,5 @@ void ServerConnect() { sendto(fd, buff, sizeof(buff), 0, (struct sockaddr *)&server, sizeof(server)); close(fd); + net_cleanup(); } |