mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Removed useless stuff.
This commit is contained in:
parent
ef5ef8ef36
commit
4a987bf751
|
@ -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];
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user