diff options
author | Coren[m] <Break@Ocean> | 2013-09-12 15:42:03 +0200 |
---|---|---|
committer | Coren[m] <Break@Ocean> | 2013-09-12 15:42:03 +0200 |
commit | a74cfaea81fecb11a6f56e069d59b8ea68dd98a8 (patch) | |
tree | bdfb9720e91819c4535068d208ca272afe2c103b /toxcore/tox.c | |
parent | 5e1523e61d5f5718d98e7b5eb41f9574ac386928 (diff) |
tox.h:
- #define'd tox's network port (as range)
- finally killed tox_new_ex() in favor of changing tox_new()'s signature
- renamed tox_bootstrap() to tox_bootstrap_from_ip()
network.h:
- #define'd tox's network port (as range)
- renamed SEND_NODES_EX to SEND_NODES_IPV6
- bind() loop uses #define'd port range
DHT.c:
- renamed SEND_NODES_EX to SEND_NODES_IPV6
- sending ipv6 node addresses even if can't use them ourselves
nTox.c:
- adapted to changed tox_new()
Diffstat (limited to 'toxcore/tox.c')
-rw-r--r-- | toxcore/tox.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toxcore/tox.c b/toxcore/tox.c index 31ae9c0f..f5c6c8ba 100644 --- a/toxcore/tox.c +++ b/toxcore/tox.c | |||
@@ -366,10 +366,10 @@ void tox_callback_connectionstatus(void *tox, void (*function)(Messenger *tox, i | |||
366 | m_callback_connectionstatus(m, function, userdata); | 366 | m_callback_connectionstatus(m, function, userdata); |
367 | } | 367 | } |
368 | 368 | ||
369 | /* Use this function to bootstrap the client. | 369 | /* Use these functions to bootstrap the client. |
370 | * Sends a get nodes request to the given node with ip port and public_key. | 370 | * Sends a get nodes request to the given node with ip port and public_key. |
371 | */ | 371 | */ |
372 | void tox_bootstrap(void *tox, IP_Port ip_port, uint8_t *public_key) | 372 | void tox_bootstrap_from_ip(void *tox, IP_Port ip_port, uint8_t *public_key) |
373 | { | 373 | { |
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); |