mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Added comment block to Messenger test.
This commit is contained in:
parent
4d50638528
commit
127fced11f
|
@ -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.
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user