Skip to content

Commit

Permalink
be less verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
zoff99 committed Jul 20, 2023
1 parent 8f156f6 commit ce8dee9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions toxcore/net_crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -3414,7 +3414,7 @@ static int udp_handle_packet(void *object, const IP_Port *source, const uint8_t
//TODO: add logger?
// FILE *fp;
// fp = fopen ("data.log", "a");
fprintf(stderr, "ENTERING: udp_handle_packet() => PACKET %d\n", packet[0]);
// fprintf(stderr, "ENTERING: udp_handle_packet() => PACKET %d\n", packet[0]);

Net_Crypto *c = (Net_Crypto *)object;

Expand All @@ -3430,7 +3430,7 @@ static int udp_handle_packet(void *object, const IP_Port *source, const uint8_t
return 1;
}
//TODO: remove
fprintf(stderr, "ENTERING: udp_handle_packet() => NO CRYPTO CONN YET -> RESPONDER\n");
// fprintf(stderr, "ENTERING: udp_handle_packet() => NO CRYPTO CONN YET -> RESPONDER\n");

if (handle_new_connection_handshake(c, source, packet, length, userdata) != 0) {
return 1;
Expand All @@ -3442,7 +3442,7 @@ static int udp_handle_packet(void *object, const IP_Port *source, const uint8_t
//TODO: return -1 if RESPONDER?

//TODO: remove
fprintf(stderr, "ENTERING: udp_handle_packet() => CRYPTO CONN EXISTING\n");
// fprintf(stderr, "ENTERING: udp_handle_packet() => CRYPTO CONN EXISTING\n");
if (handle_packet_connection(c, crypt_connection_id, packet, length, true, userdata) != 0) {
return 1;
}
Expand Down

0 comments on commit ce8dee9

Please sign in to comment.