diff options
author | Coren[m] <Break@Ocean> | 2013-09-09 19:17:21 +0200 |
---|---|---|
committer | Coren[m] <Break@Ocean> | 2013-09-09 19:17:21 +0200 |
commit | a77253c79b9c2acaa73164dcbd0694cb7b19db91 (patch) | |
tree | c8ccaa21afb3776748d2dae050d162b766d73740 /toxcore/tox.c | |
parent | 9a8dc575b7a2004fbe6e8237a8565df390d76529 (diff) |
tox.*, DHT.*;
- second set of *_bootstrap_ex() functions to allow addresses instead of IPs
network.h:
- new message ID for sending/receiving IPv6 nodes
DHT.*:
- get_close_nodes():
- additional parameter to select which kind of nodes: IPv4 or IPv6
- sendnodes()/handle_sendnodes():
- the IPv4 message must remain intact even when the Node_format structure (which embeds IP_Port) is expanded
- added Node4_format to keep the structure "alive"
- copying in/out of wider to smaller format required in sendnodes()/handle_sendnodes()
- switch of Node_format from Node4_format to Node46_format by define
Diffstat (limited to 'toxcore/tox.c')
-rw-r--r-- | toxcore/tox.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/toxcore/tox.c b/toxcore/tox.c index 83b19e9b..1507b2c5 100644 --- a/toxcore/tox.c +++ b/toxcore/tox.c | |||
@@ -374,6 +374,11 @@ void tox_bootstrap(void *tox, IP_Port ip_port, uint8_t *public_key) | |||
374 | Messenger *m = tox; | 374 | Messenger *m = tox; |
375 | DHT_bootstrap(m->dht, ip_port, public_key); | 375 | DHT_bootstrap(m->dht, ip_port, public_key); |
376 | } | 376 | } |
377 | void tox_bootstrap_ex(void *tox, const char *address, uint16_t port, uint8_t *public_key) | ||
378 | { | ||
379 | Messenger *m = tox; | ||
380 | DHT_bootstrap_ex(m->dht, address, port, public_key); | ||
381 | }; | ||
377 | 382 | ||
378 | /* return 0 if we are not connected to the DHT. | 383 | /* return 0 if we are not connected to the DHT. |
379 | * return 1 if we are. | 384 | * return 1 if we are. |