diff options
Diffstat (limited to 'toxcore/tox.h')
-rw-r--r-- | toxcore/tox.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/toxcore/tox.h b/toxcore/tox.h index 6cad6b10..c9a6bc70 100644 --- a/toxcore/tox.h +++ b/toxcore/tox.h | |||
@@ -603,19 +603,15 @@ uint64_t tox_file_data_remaining(const Tox *tox, int32_t friendnumber, uint8_t f | |||
603 | */ | 603 | */ |
604 | 604 | ||
605 | /* Resolves address into an IP address. If successful, sends a "get nodes" | 605 | /* Resolves address into an IP address. If successful, sends a "get nodes" |
606 | * request to the given node with ip, port (in network byte order, HINT: use htons()) | 606 | * request to the given node with ip, port (in host byte order). |
607 | * and public_key to setup connections | 607 | * and public_key to setup connections |
608 | * | 608 | * |
609 | * address can be a hostname or an IP address (IPv4 or IPv6). | 609 | * address can be a hostname or an IP address (IPv4 or IPv6). |
610 | * if ipv6enabled is 0 (zero), the resolving sticks STRICTLY to IPv4 addresses | ||
611 | * if ipv6enabled is not 0 (zero), the resolving looks for IPv6 addresses first, | ||
612 | * then IPv4 addresses. | ||
613 | * | 610 | * |
614 | * returns 1 if the address could be converted into an IP address | 611 | * returns 1 if the address could be converted into an IP address |
615 | * returns 0 otherwise | 612 | * returns 0 otherwise |
616 | */ | 613 | */ |
617 | int tox_bootstrap_from_address(Tox *tox, const char *address, uint8_t ipv6enabled, | 614 | int tox_bootstrap_from_address(Tox *tox, const char *address, uint16_t port, const uint8_t *public_key); |
618 | uint16_t port, const uint8_t *public_key); | ||
619 | 615 | ||
620 | /* return 0 if we are not connected to the DHT. | 616 | /* return 0 if we are not connected to the DHT. |
621 | * return 1 if we are. | 617 | * return 1 if we are. |