diff options
author | irungentoo <irungentoo@gmail.com> | 2014-01-03 22:13:20 -0500 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2014-01-03 22:13:20 -0500 |
commit | d46891c3b7cf70a2b436562ae387d85384f05d5c (patch) | |
tree | 20039221262790fd49c3632c390ee9af9ecf8875 /toxcore/onion.h | |
parent | 97a141c0cc3cb2775e60cd61340bf1f63bf9d2b6 (diff) |
A bit of work done on the onion part.
Diffstat (limited to 'toxcore/onion.h')
-rw-r--r-- | toxcore/onion.h | 7 |
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 | */ |
49 | int send_onion_packet(Onion *onion, Node_format *nodes, uint8_t *data, uint32_t length); | 49 | int 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 | */ | ||
56 | int send_onion_response(Networking_Core *net, IP_Port dest, uint8_t *data, uint32_t length, uint8_t *ret); | ||
57 | |||
51 | Onion *new_onion(DHT *dht); | 58 | Onion *new_onion(DHT *dht); |
52 | 59 | ||
53 | void kill_onion(Onion *onion); | 60 | void kill_onion(Onion *onion); |