summaryrefslogtreecommitdiff
path: root/toxcore/tox.h
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/tox.h')
-rw-r--r--toxcore/tox.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/toxcore/tox.h b/toxcore/tox.h
index 2acc70ea..a66bcb17 100644
--- a/toxcore/tox.h
+++ b/toxcore/tox.h
@@ -353,6 +353,25 @@ struct Tox_Options {
353 * proxy_enabled is false. 353 * proxy_enabled is false.
354 */ 354 */
355 uint16_t proxy_port; 355 uint16_t proxy_port;
356
357 /**
358 * The start port of the inclusive port range to attempt to use.
359 *
360 * If both start_port and end_port are 0, the default port range will be
361 * used: [33445, 33545].
362 *
363 * If either start_port or end_port is 0 while the other is non-zero, the
364 * non-zero port will be the only port in the range.
365 *
366 * Having start_port > end_port will yield the same behavior as if start_port
367 * and end_port were swapped.
368 */
369 uint16_t start_port;
370
371 /**
372 * The end port of the inclusive port range to attempt to use.
373 */
374 uint16_t end_port;
356}; 375};
357 376
358 377