diff --git a/core/net_crypto.c b/core/net_crypto.c index 9f9378f6..0bae2d2e 100644 --- a/core/net_crypto.c +++ b/core/net_crypto.c @@ -617,7 +617,6 @@ void receive_crypto() //if the packet is a friend request drop it (because we are already friends) { len = read_packet(crypto_connections[i].number, temp_data); - printf("REQUEST DROPPED\n"); } if(id_packet(crypto_connections[i].number) == 2)//handle handshake packet. diff --git a/testing/Messenger_test.c b/testing/Messenger_test.c index 3c7c08e9..8b19ffa5 100644 --- a/testing/Messenger_test.c +++ b/testing/Messenger_test.c @@ -1,4 +1,19 @@ - +/* Messenger test + * + * This program adds a friend and accepts all friend requests with the proper message. + * + * It tries sending a message to the added friend. + * + * If it recieves a message from a friend it replies back. + * + * + * This is how I compile it: gcc -O2 -Wall -o test ../core/Lossless_UDP.c ../core/network.c ../core/net_crypto.c ../core/DHT.c ../core/Messenger.c ../nacl/build/Linux/lib/amd64/* Messenger_test.c + * + * + * Command line arguments are the ip and port of a node (for bootstrapping). + * + * EX: ./test 127.0.0.1 33445 + */ #include "../core/Messenger.h"