From 4e1f49955a78dcee3fc34ddff814632ec79ddfea Mon Sep 17 00:00:00 2001 From: irungentoo Date: Thu, 9 Apr 2015 20:59:33 -0400 Subject: Some more work on TCP connection. --- toxcore/TCP_client.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'toxcore/TCP_client.h') 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 { uint64_t ping_response_id; uint64_t ping_request_id; + //TODO: remove 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]; @@ -96,6 +98,10 @@ typedef struct { int (*onion_callback)(void *object, const uint8_t *data, uint16_t length); void *onion_callback_object; + + /* Can be used by user. */ + void *custom_object; + uint32_t custom_uint; } TCP_Client_Connection; /* Create new TCP connection to ip_port/public_key -- cgit v1.2.3