diff options
author | irungentoo <irungentoo@gmail.com> | 2014-01-14 14:20:42 -0500 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2014-01-14 14:20:42 -0500 |
commit | a49a09f94b6b9754e322f2f29a4abf9ae1be106c (patch) | |
tree | 9523220b5ed6260055fd6a2191122f8c0880172f /toxcore/onion_announce.h | |
parent | 878762a8e4ec6873daa29bcf32a9416844943ae2 (diff) |
Onion data packets can now be handled in onion_client.
oniondata_registerhandler(...) can be used to register different packet
types to handle them and send_onion_data(...) can be used to send these
packets.
Diffstat (limited to 'toxcore/onion_announce.h')
-rw-r--r-- | toxcore/onion_announce.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/toxcore/onion_announce.h b/toxcore/onion_announce.h index f7d565e5..01cd7243 100644 --- a/toxcore/onion_announce.h +++ b/toxcore/onion_announce.h | |||
@@ -75,11 +75,13 @@ int send_announce_request(DHT *dht, Node_format *nodes, uint8_t *public_key, uin | |||
75 | * send the packet to that person in the form of a response) | 75 | * send the packet to that person in the form of a response) |
76 | * | 76 | * |
77 | * public_key is the real public key of the node which we want to send the data of length length to. | 77 | * public_key is the real public key of the node which we want to send the data of length length to. |
78 | * nonce is the nonce to encrypt this packet with | ||
78 | * | 79 | * |
79 | * return -1 on failure. | 80 | * return -1 on failure. |
80 | * return 0 on success. | 81 | * return 0 on success. |
81 | */ | 82 | */ |
82 | int send_data_request(DHT *dht, Node_format *nodes, uint8_t *public_key, uint8_t *data, uint16_t length); | 83 | int send_data_request(DHT *dht, Node_format *nodes, uint8_t *public_key, uint8_t *nonce, uint8_t *data, |
84 | uint16_t length); | ||
83 | 85 | ||
84 | 86 | ||
85 | Onion_Announce *new_onion_announce(DHT *dht); | 87 | Onion_Announce *new_onion_announce(DHT *dht); |