Added comment block to Messenger test.

This commit is contained in:
irungentoo 2013-07-09 13:27:47 -04:00
parent 4d50638528
commit 127fced11f
2 changed files with 16 additions and 2 deletions

View File

@ -617,7 +617,6 @@ void receive_crypto()
//if the packet is a friend request drop it (because we are already friends) //if the packet is a friend request drop it (because we are already friends)
{ {
len = read_packet(crypto_connections[i].number, temp_data); len = read_packet(crypto_connections[i].number, temp_data);
printf("REQUEST DROPPED\n");
} }
if(id_packet(crypto_connections[i].number) == 2)//handle handshake packet. if(id_packet(crypto_connections[i].number) == 2)//handle handshake packet.

View File

@ -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" #include "../core/Messenger.h"