Add missing MAX_HOSTNAME_LENGTH doc.

This commit is contained in:
cotox 2018-06-26 11:22:51 +00:00
parent 5b14542d3b
commit 72863b9b80
No known key found for this signature in database
GPG Key ID: 28C1B5C5CF9E30A3
2 changed files with 2 additions and 0 deletions

View File

@ -786,6 +786,7 @@ bool bootstrap(string host, uint16_t port, const uint8_t[PUBLIC_KEY_SIZE] public
* bootstrap nodes.
*
* @param host The hostname or IP address (IPv4 or IPv6) of the TCP relay.
* Must be at most $MAX_HOSTNAME_LENGTH chars, including the NUL byte.
* @param port The port on the host on which the TCP relay is listening.
* @param public_key The long term public key of the TCP relay
* ($PUBLIC_KEY_SIZE bytes).

View File

@ -943,6 +943,7 @@ bool tox_bootstrap(Tox *tox, const char *host, uint16_t port, const uint8_t *pub
* bootstrap nodes.
*
* @param host The hostname or IP address (IPv4 or IPv6) of the TCP relay.
* Must be at most TOX_MAX_HOSTNAME_LENGTH chars, including the NUL byte.
* @param port The port on the host on which the TCP relay is listening.
* @param public_key The long term public key of the TCP relay
* (TOX_PUBLIC_KEY_SIZE bytes).