diff options
author | zoff99 <zoff@zoff.cc> | 2020-04-09 20:07:32 +0200 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2020-04-16 12:28:13 +0000 |
commit | cdafc6ff5ee13595ecf5a4e1fe0cb28e255c37df (patch) | |
tree | e11907b288b1ff68a69ed74ed33c0f48676a307f /toxcore/tox.api.h | |
parent | c08b2fb3e2c3c8e8a5722e7350b61efd6992be45 (diff) |
Add new semi-private API functions to set per-packet-id custom handlers.
This is to prepare for ToxAV becoming independent of toxcore internal calls.
Diffstat (limited to 'toxcore/tox.api.h')
-rw-r--r-- | toxcore/tox.api.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/toxcore/tox.api.h b/toxcore/tox.api.h index 5e42b866..3cda8126 100644 --- a/toxcore/tox.api.h +++ b/toxcore/tox.api.h | |||
@@ -2670,7 +2670,7 @@ namespace friend { | |||
2670 | FRIEND_NOT_CONNECTED, | 2670 | FRIEND_NOT_CONNECTED, |
2671 | /** | 2671 | /** |
2672 | * The first byte of data was not in the specified range for the packet type. | 2672 | * The first byte of data was not in the specified range for the packet type. |
2673 | * This range is 200-254 for lossy, and 160-191 for lossless packets. | 2673 | * This range is 192-254 for lossy, and 69, 160-191 for lossless packets. |
2674 | */ | 2674 | */ |
2675 | INVALID, | 2675 | INVALID, |
2676 | /** | 2676 | /** |
@@ -2692,7 +2692,7 @@ namespace friend { | |||
2692 | /** | 2692 | /** |
2693 | * Send a custom lossy packet to a friend. | 2693 | * Send a custom lossy packet to a friend. |
2694 | * | 2694 | * |
2695 | * The first byte of data must be in the range 200-254. Maximum length of a | 2695 | * The first byte of data must be in the range 192-254. Maximum length of a |
2696 | * custom packet is $MAX_CUSTOM_PACKET_SIZE. | 2696 | * custom packet is $MAX_CUSTOM_PACKET_SIZE. |
2697 | * | 2697 | * |
2698 | * Lossy packets behave like UDP packets, meaning they might never reach the | 2698 | * Lossy packets behave like UDP packets, meaning they might never reach the |
@@ -2716,7 +2716,7 @@ namespace friend { | |||
2716 | /** | 2716 | /** |
2717 | * Send a custom lossless packet to a friend. | 2717 | * Send a custom lossless packet to a friend. |
2718 | * | 2718 | * |
2719 | * The first byte of data must be in the range 160-191. Maximum length of a | 2719 | * The first byte of data must be in the range 69, 160-191. Maximum length of a |
2720 | * custom packet is $MAX_CUSTOM_PACKET_SIZE. | 2720 | * custom packet is $MAX_CUSTOM_PACKET_SIZE. |
2721 | * | 2721 | * |
2722 | * Lossless packet behaviour is comparable to TCP (reliability, arrive in order) | 2722 | * Lossless packet behaviour is comparable to TCP (reliability, arrive in order) |