summaryrefslogtreecommitdiff
path: root/toxcore/onion.h
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2014-01-03 22:13:20 -0500
committerirungentoo <irungentoo@gmail.com>2014-01-03 22:13:20 -0500
commitd46891c3b7cf70a2b436562ae387d85384f05d5c (patch)
tree20039221262790fd49c3632c390ee9af9ecf8875 /toxcore/onion.h
parent97a141c0cc3cb2775e60cd61340bf1f63bf9d2b6 (diff)
A bit of work done on the onion part.
Diffstat (limited to 'toxcore/onion.h')
-rw-r--r--toxcore/onion.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/toxcore/onion.h b/toxcore/onion.h
index 8a972e17..84aa72e1 100644
--- a/toxcore/onion.h
+++ b/toxcore/onion.h
@@ -48,6 +48,13 @@ typedef struct {
48 */ 48 */
49int send_onion_packet(Onion *onion, Node_format *nodes, uint8_t *data, uint32_t length); 49int send_onion_packet(Onion *onion, Node_format *nodes, uint8_t *data, uint32_t length);
50 50
51/* Create and send a onion response sent initially to dest with.
52 *
53 * return -1 on failure.
54 * return 0 on success.
55 */
56int send_onion_response(Networking_Core *net, IP_Port dest, uint8_t *data, uint32_t length, uint8_t *ret);
57
51Onion *new_onion(DHT *dht); 58Onion *new_onion(DHT *dht);
52 59
53void kill_onion(Onion *onion); 60void kill_onion(Onion *onion);