Skip to content

Commit

Permalink
updated compilation and execution instructions for Lossless UDP tests…
Browse files Browse the repository at this point in the history
…, and fixed minor typos
  • Loading branch information
Kelong Cong committed Mar 12, 2014
1 parent 128a0d2 commit a13de8b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions testing/Lossless_UDP_testclient.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand All @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion testing/Lossless_UDP_testserver.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion toxcore/network.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* network.h
/* network.c
*
* Functions for the core networking.
*
Expand Down

0 comments on commit a13de8b

Please sign in to comment.