Removed useless stuff.

This commit is contained in:
irungentoo 2015-04-19 10:34:13 -04:00
parent ef5ef8ef36
commit 4a987bf751
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98
3 changed files with 1 additions and 5 deletions

View File

@ -78,10 +78,6 @@ typedef struct {
uint64_t ping_response_id;
uint64_t ping_request_id;
//TODO: remove
void *net_crypto_pointer;
uint32_t net_crypto_location;
struct {
uint8_t status; /* 0 if not used, 1 if other is offline, 2 if other is online. */
uint8_t public_key[crypto_box_PUBLICKEYBYTES];

View File

@ -1072,7 +1072,6 @@ static void kill_nonused_tcp(TCP_Connections *tcp_c)
void do_tcp_connections(TCP_Connections *tcp_c)
{
//TODO reconnect to TCP relays if disconnects happen.
do_tcp_conns(tcp_c);
kill_nonused_tcp(tcp_c);
}

View File

@ -1566,6 +1566,7 @@ int accept_crypto_connection(Net_Crypto *c, New_Connection *n_c)
pthread_mutex_unlock(&c->tcp_mutex);
return -1;
}
memcpy(conn->dht_public_key, n_c->dht_public_key, crypto_box_PUBLICKEYBYTES);
conn->packet_send_rate = CRYPTO_PACKET_MIN_RATE;
conn->packets_left = CRYPTO_MIN_QUEUE_LENGTH;