diff --git a/testing/Lossless_UDP_testclient.c b/testing/Lossless_UDP_testclient.c index de34dd6b..535509e0 100644 --- a/testing/Lossless_UDP_testclient.c +++ b/testing/Lossless_UDP_testclient.c @@ -4,10 +4,10 @@ * * Best used in combination with Lossless_UDP_testserver * - * Compile with: gcc -O2 -Wall -lsodium -o testclient ../core/network.c ../core/Lossless_UDP.c Lossless_UDP_testclient.c + * Compile with: gcc -O2 -Wall -lsodium -o testclient ../toxcore/network.c ../toxcore/Lossless_UDP.c ../toxcore/util.c Lossless_UDP_testclient.c * * Command line arguments are the ip and port to connect and send the file to. - * EX: ./testclient 127.0.0.1 33445 filename.txt + * EX: ./testclient --ipv4 127.0.0.1 33445 filename.txt * * Copyright (C) 2013 Tox project All Rights Reserved. * @@ -34,6 +34,7 @@ #include "../toxcore/network.h" #include "../toxcore/Lossless_UDP.h" +#include "../toxcore/util.h" #include "misc_tools.c" #if defined(_WIN32) || defined(__WIN32__) || defined (WIN32) diff --git a/testing/Lossless_UDP_testserver.c b/testing/Lossless_UDP_testserver.c index 4ef098d2..dd4612f5 100644 --- a/testing/Lossless_UDP_testserver.c +++ b/testing/Lossless_UDP_testserver.c @@ -4,7 +4,7 @@ * * Best used in combination with Lossless_UDP_testclient * - * Compile with: gcc -O2 -Wall -lsodium -o testserver ../core/network.c ../core/Lossless_UDP.c Lossless_UDP_testserver.c + * Compile with: gcc -O2 -Wall -lsodium -o testserver ../toxcore/network.c ../toxcore/Lossless_UDP.c ../toxcore/util.c Lossless_UDP_testserver.c * * Command line argument is the name of the file to save what we receive to. * EX: ./testserver filename1.txt @@ -34,6 +34,7 @@ #include "../toxcore/network.h" #include "../toxcore/Lossless_UDP.h" +#include "../toxcore/util.h" #include "misc_tools.c" //Sleep function (x = milliseconds) diff --git a/toxcore/network.c b/toxcore/network.c index eb637546..d7ea2bf0 100644 --- a/toxcore/network.c +++ b/toxcore/network.c @@ -1,4 +1,4 @@ -/* network.h +/* network.c * * Functions for the core networking. *