diff options
author | irungentoo <irungentoo@gmail.com> | 2015-06-16 23:00:24 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2015-06-16 23:00:24 -0400 |
commit | 67df1ab7ce6b6cb8103ddf73df814f685240a59c (patch) | |
tree | ce5c052b16271be5dca553cf9ce6df7e27676f22 /toxcore/TCP_connection.h | |
parent | 48ef0f3241e0bde931d53c5c7799e8a75c52a481 (diff) |
Made new_tcp_connections() not depend on dht.
Diffstat (limited to 'toxcore/TCP_connection.h')
-rw-r--r-- | toxcore/TCP_connection.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/toxcore/TCP_connection.h b/toxcore/TCP_connection.h index 29fbdee0..140d6de3 100644 --- a/toxcore/TCP_connection.h +++ b/toxcore/TCP_connection.h | |||
@@ -81,6 +81,9 @@ typedef struct { | |||
81 | typedef struct { | 81 | typedef struct { |
82 | DHT *dht; | 82 | DHT *dht; |
83 | 83 | ||
84 | uint8_t self_public_key[crypto_box_PUBLICKEYBYTES]; | ||
85 | uint8_t self_secret_key[crypto_box_SECRETKEYBYTES]; | ||
86 | |||
84 | TCP_Connection_to *connections; | 87 | TCP_Connection_to *connections; |
85 | uint32_t connections_length; /* Length of connections array. */ | 88 | uint32_t connections_length; /* Length of connections array. */ |
86 | 89 | ||
@@ -223,7 +226,7 @@ int add_tcp_relay_global(TCP_Connections *tcp_c, IP_Port ip_port, const uint8_t | |||
223 | */ | 226 | */ |
224 | unsigned int tcp_copy_connected_relays(TCP_Connections *tcp_c, Node_format *tcp_relays, uint16_t max_num); | 227 | unsigned int tcp_copy_connected_relays(TCP_Connections *tcp_c, Node_format *tcp_relays, uint16_t max_num); |
225 | 228 | ||
226 | TCP_Connections *new_tcp_connections(DHT *dht, TCP_Proxy_Info *proxy_info); | 229 | TCP_Connections *new_tcp_connections(const uint8_t *secret_key, TCP_Proxy_Info *proxy_info); |
227 | void do_tcp_connections(TCP_Connections *tcp_c); | 230 | void do_tcp_connections(TCP_Connections *tcp_c); |
228 | void kill_tcp_connections(TCP_Connections *tcp_c); | 231 | void kill_tcp_connections(TCP_Connections *tcp_c); |
229 | 232 | ||