summaryrefslogtreecommitdiff
path: root/toxcore/TCP_connection.h
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2015-06-16 23:00:24 -0400
committerirungentoo <irungentoo@gmail.com>2015-06-16 23:00:24 -0400
commit67df1ab7ce6b6cb8103ddf73df814f685240a59c (patch)
treece5c052b16271be5dca553cf9ce6df7e27676f22 /toxcore/TCP_connection.h
parent48ef0f3241e0bde931d53c5c7799e8a75c52a481 (diff)
Made new_tcp_connections() not depend on dht.
Diffstat (limited to 'toxcore/TCP_connection.h')
-rw-r--r--toxcore/TCP_connection.h5
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 {
81typedef struct { 81typedef 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 */
224unsigned int tcp_copy_connected_relays(TCP_Connections *tcp_c, Node_format *tcp_relays, uint16_t max_num); 227unsigned int tcp_copy_connected_relays(TCP_Connections *tcp_c, Node_format *tcp_relays, uint16_t max_num);
225 228
226TCP_Connections *new_tcp_connections(DHT *dht, TCP_Proxy_Info *proxy_info); 229TCP_Connections *new_tcp_connections(const uint8_t *secret_key, TCP_Proxy_Info *proxy_info);
227void do_tcp_connections(TCP_Connections *tcp_c); 230void do_tcp_connections(TCP_Connections *tcp_c);
228void kill_tcp_connections(TCP_Connections *tcp_c); 231void kill_tcp_connections(TCP_Connections *tcp_c);
229 232