diff options
Diffstat (limited to 'toxcore/tox.h')
-rw-r--r-- | toxcore/tox.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/toxcore/tox.h b/toxcore/tox.h index 2a26e7a6..5d3916b4 100644 --- a/toxcore/tox.h +++ b/toxcore/tox.h | |||
@@ -62,7 +62,7 @@ extern "C" { | |||
62 | #define TOX_FRIEND_ADDRESS_SIZE (TOX_CLIENT_ID_SIZE + sizeof(uint32_t) + sizeof(uint16_t)) | 62 | #define TOX_FRIEND_ADDRESS_SIZE (TOX_CLIENT_ID_SIZE + sizeof(uint32_t) + sizeof(uint16_t)) |
63 | 63 | ||
64 | #define TOX_PORTRANGE_FROM 33445 | 64 | #define TOX_PORTRANGE_FROM 33445 |
65 | #define TOX_PORTRANGE_TO 33455 | 65 | #define TOX_PORTRANGE_TO 33545 |
66 | #define TOX_PORT_DEFAULT TOX_PORTRANGE_FROM | 66 | #define TOX_PORT_DEFAULT TOX_PORTRANGE_FROM |
67 | 67 | ||
68 | typedef union { | 68 | typedef union { |
@@ -521,7 +521,8 @@ uint64_t tox_file_dataremaining(Tox *tox, int friendnumber, uint8_t filenumber, | |||
521 | void tox_bootstrap_from_ip(Tox *tox, tox_IP_Port ip_port, uint8_t *public_key); | 521 | void tox_bootstrap_from_ip(Tox *tox, tox_IP_Port ip_port, uint8_t *public_key); |
522 | 522 | ||
523 | /* Resolves address into an IP address. If successful, sends a "get nodes" | 523 | /* Resolves address into an IP address. If successful, sends a "get nodes" |
524 | * request to the given node with ip, port and public_key to setup connections | 524 | * request to the given node with ip, port (in network byte order, HINT: use htons()) |
525 | * and public_key to setup connections | ||
525 | * | 526 | * |
526 | * address can be a hostname or an IP address (IPv4 or IPv6). | 527 | * address can be a hostname or an IP address (IPv4 or IPv6). |
527 | * if ipv6enabled is 0 (zero), the resolving sticks STRICTLY to IPv4 addresses | 528 | * if ipv6enabled is 0 (zero), the resolving sticks STRICTLY to IPv4 addresses |