From 3ab05b6e2ed9392e20ec711b835b6a1f20980c0a Mon Sep 17 00:00:00 2001 From: irungentoo Date: Fri, 16 May 2014 17:29:50 -0400 Subject: Some TCP code added to net_crypto. add_tcp_relay() can be used to connect to some TCP relays. If both Toxes are connected to the same TCP relay(s) and create a connection on which they set the others dht_public_key, they will connect. --- toxcore/TCP_client.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'toxcore/TCP_client.h') diff --git a/toxcore/TCP_client.h b/toxcore/TCP_client.h index 768ef9d2..9583e15f 100644 --- a/toxcore/TCP_client.h +++ b/toxcore/TCP_client.h @@ -56,6 +56,8 @@ typedef struct { uint64_t last_pinged; uint64_t ping_id; + 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]; -- cgit v1.2.3