summaryrefslogtreecommitdiff
path: root/toxcore/tox.h
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/tox.h')
-rw-r--r--toxcore/tox.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/toxcore/tox.h b/toxcore/tox.h
index fd57e20d..dc873f3b 100644
--- a/toxcore/tox.h
+++ b/toxcore/tox.h
@@ -3168,20 +3168,6 @@ void tox_callback_friend_lossless_packet(Tox *tox, tox_friend_lossless_packet_cb
3168 3168
3169 3169
3170 3170
3171/**
3172 * Writes the temporary DHT public key of this instance to a byte array.
3173 *
3174 * This can be used in combination with an externally accessible IP address and
3175 * the bound port (from tox_self_get_udp_port) to run a temporary bootstrap node.
3176 *
3177 * Be aware that every time a new instance is created, the DHT public key
3178 * changes, meaning this cannot be used to run a permanent bootstrap node.
3179 *
3180 * @param dht_id A memory region of at least TOX_PUBLIC_KEY_SIZE bytes. If this
3181 * parameter is NULL, this function has no effect.
3182 */
3183void tox_self_get_dht_id(const Tox *tox, uint8_t *dht_id);
3184
3185typedef enum TOX_ERR_GET_PORT { 3171typedef enum TOX_ERR_GET_PORT {
3186 3172
3187 /** 3173 /**
@@ -3198,6 +3184,20 @@ typedef enum TOX_ERR_GET_PORT {
3198 3184
3199 3185
3200/** 3186/**
3187 * Writes the temporary DHT public key of this instance to a byte array.
3188 *
3189 * This can be used in combination with an externally accessible IP address and
3190 * the bound port (from tox_self_get_udp_port) to run a temporary bootstrap node.
3191 *
3192 * Be aware that every time a new instance is created, the DHT public key
3193 * changes, meaning this cannot be used to run a permanent bootstrap node.
3194 *
3195 * @param dht_id A memory region of at least TOX_PUBLIC_KEY_SIZE bytes. If this
3196 * parameter is NULL, this function has no effect.
3197 */
3198void tox_self_get_dht_id(const Tox *tox, uint8_t *dht_id);
3199
3200/**
3201 * Return the UDP port this Tox instance is bound to. 3201 * Return the UDP port this Tox instance is bound to.
3202 */ 3202 */
3203uint16_t tox_self_get_udp_port(const Tox *tox, TOX_ERR_GET_PORT *error); 3203uint16_t tox_self_get_udp_port(const Tox *tox, TOX_ERR_GET_PORT *error);