diff options
author | irungentoo <irungentoo@gmail.com> | 2014-05-16 17:29:50 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2014-05-16 17:29:50 -0400 |
commit | 3ab05b6e2ed9392e20ec711b835b6a1f20980c0a (patch) | |
tree | 934923606f5fcb4d7990a902f41a46cdf6a1c26f /toxcore/TCP_client.h | |
parent | 933428b89971216eb0650f77f15d0690a25067f0 (diff) |
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.
Diffstat (limited to 'toxcore/TCP_client.h')
-rw-r--r-- | toxcore/TCP_client.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 { | |||
56 | uint64_t last_pinged; | 56 | uint64_t last_pinged; |
57 | uint64_t ping_id; | 57 | uint64_t ping_id; |
58 | 58 | ||
59 | void *net_crypto_pointer; | ||
60 | uint32_t net_crypto_location; | ||
59 | struct { | 61 | struct { |
60 | uint8_t status; /* 0 if not used, 1 if other is offline, 2 if other is online. */ | 62 | uint8_t status; /* 0 if not used, 1 if other is offline, 2 if other is online. */ |
61 | uint8_t public_key[crypto_box_PUBLICKEYBYTES]; | 63 | uint8_t public_key[crypto_box_PUBLICKEYBYTES]; |