summaryrefslogtreecommitdiff
path: root/toxcore/network.h
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/network.h')
-rw-r--r--toxcore/network.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/toxcore/network.h b/toxcore/network.h
index 9fbefc28..b7e8ede2 100644
--- a/toxcore/network.h
+++ b/toxcore/network.h
@@ -95,7 +95,7 @@ typedef enum Net_Packet_Type {
95 NET_PACKET_CRYPTO = 0x20, /* Encrypted data packet ID. */ 95 NET_PACKET_CRYPTO = 0x20, /* Encrypted data packet ID. */
96 NET_PACKET_LAN_DISCOVERY = 0x21, /* LAN discovery packet ID. */ 96 NET_PACKET_LAN_DISCOVERY = 0x21, /* LAN discovery packet ID. */
97 97
98 /* See: docs/Prevent_Tracking.txt and onion.{c,h} */ 98 /* See: `docs/Prevent_Tracking.txt` and `onion.{c,h}` */
99 NET_PACKET_ONION_SEND_INITIAL = 0x80, 99 NET_PACKET_ONION_SEND_INITIAL = 0x80,
100 NET_PACKET_ONION_SEND_1 = 0x81, 100 NET_PACKET_ONION_SEND_1 = 0x81,
101 NET_PACKET_ONION_SEND_2 = 0x82, 101 NET_PACKET_ONION_SEND_2 = 0x82,
@@ -288,11 +288,11 @@ void ipport_copy(IP_Port *target, const IP_Port *source);
288 * IP versions are acceptable 288 * IP versions are acceptable
289 * @param extra can be NULL and is only set in special circumstances, see returns 289 * @param extra can be NULL and is only set in special circumstances, see returns
290 * 290 *
291 * returns in *to a valid IPAny (v4/v6), 291 * returns in `*to` a valid IPAny (v4/v6),
292 * prefers v6 if ip.family was TOX_AF_UNSPEC and both available 292 * prefers v6 if `ip.family` was TOX_AF_UNSPEC and both available
293 * returns in *extra an IPv4 address, if family was TOX_AF_UNSPEC and *to is TOX_AF_INET6 293 * returns in `*extra` an IPv4 address, if family was TOX_AF_UNSPEC and `*to` is TOX_AF_INET6
294 * 294 *
295 * @return 0 on failure, TOX_ADDR_RESOLVE_* on success. 295 * @return 0 on failure, `TOX_ADDR_RESOLVE_*` on success.
296 */ 296 */
297int addr_resolve(const char *address, IP *to, IP *extra); 297int addr_resolve(const char *address, IP *to, IP *extra);
298 298
@@ -305,8 +305,8 @@ int addr_resolve(const char *address, IP *to, IP *extra);
305 * IP versions are acceptable 305 * IP versions are acceptable
306 * @param extra can be NULL and is only set in special circumstances, see returns 306 * @param extra can be NULL and is only set in special circumstances, see returns
307 * 307 *
308 * returns in *tro a matching address (IPv6 or IPv4) 308 * returns in `*to` a matching address (IPv6 or IPv4)
309 * returns in *extra, if not NULL, an IPv4 address, if to->family was TOX_AF_UNSPEC 309 * returns in `*extra`, if not NULL, an IPv4 address, if `to->family` was TOX_AF_UNSPEC
310 * 310 *
311 * @return true on success, false on failure 311 * @return true on success, false on failure
312 */ 312 */