diff options
author | irungentoo <irungentoo@gmail.com> | 2015-04-09 20:59:33 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2015-04-09 20:59:33 -0400 |
commit | 4e1f49955a78dcee3fc34ddff814632ec79ddfea (patch) | |
tree | 902a3478f29f884bc4a3c23f7748d847bb3a55fd /toxcore/TCP_client.h | |
parent | 3c87c842230be730dd35c625e9c010f0e8b57da6 (diff) |
Some more work on TCP connection.
Diffstat (limited to 'toxcore/TCP_client.h')
-rw-r--r-- | toxcore/TCP_client.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/toxcore/TCP_client.h b/toxcore/TCP_client.h index e37a4ee0..d4d18a4b 100644 --- a/toxcore/TCP_client.h +++ b/toxcore/TCP_client.h | |||
@@ -78,8 +78,10 @@ typedef struct { | |||
78 | uint64_t ping_response_id; | 78 | uint64_t ping_response_id; |
79 | uint64_t ping_request_id; | 79 | uint64_t ping_request_id; |
80 | 80 | ||
81 | //TODO: remove | ||
81 | void *net_crypto_pointer; | 82 | void *net_crypto_pointer; |
82 | uint32_t net_crypto_location; | 83 | uint32_t net_crypto_location; |
84 | |||
83 | struct { | 85 | struct { |
84 | uint8_t status; /* 0 if not used, 1 if other is offline, 2 if other is online. */ | 86 | uint8_t status; /* 0 if not used, 1 if other is offline, 2 if other is online. */ |
85 | uint8_t public_key[crypto_box_PUBLICKEYBYTES]; | 87 | uint8_t public_key[crypto_box_PUBLICKEYBYTES]; |
@@ -96,6 +98,10 @@ typedef struct { | |||
96 | 98 | ||
97 | int (*onion_callback)(void *object, const uint8_t *data, uint16_t length); | 99 | int (*onion_callback)(void *object, const uint8_t *data, uint16_t length); |
98 | void *onion_callback_object; | 100 | void *onion_callback_object; |
101 | |||
102 | /* Can be used by user. */ | ||
103 | void *custom_object; | ||
104 | uint32_t custom_uint; | ||
99 | } TCP_Client_Connection; | 105 | } TCP_Client_Connection; |
100 | 106 | ||
101 | /* Create new TCP connection to ip_port/public_key | 107 | /* Create new TCP connection to ip_port/public_key |