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.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.h')
-rw-r--r-- | toxcore/tox.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/toxcore/tox.h b/toxcore/tox.h index be6f6d34..c4759507 100644 --- a/toxcore/tox.h +++ b/toxcore/tox.h | |||
@@ -3067,7 +3067,7 @@ typedef enum TOX_ERR_FRIEND_CUSTOM_PACKET { | |||
3067 | 3067 | ||
3068 | /** | 3068 | /** |
3069 | * The first byte of data was not in the specified range for the packet type. | 3069 | * The first byte of data was not in the specified range for the packet type. |
3070 | * This range is 200-254 for lossy, and 160-191 for lossless packets. | 3070 | * This range is 192-254 for lossy, and 69, 160-191 for lossless packets. |
3071 | */ | 3071 | */ |
3072 | TOX_ERR_FRIEND_CUSTOM_PACKET_INVALID, | 3072 | TOX_ERR_FRIEND_CUSTOM_PACKET_INVALID, |
3073 | 3073 | ||
@@ -3092,7 +3092,7 @@ typedef enum TOX_ERR_FRIEND_CUSTOM_PACKET { | |||
3092 | /** | 3092 | /** |
3093 | * Send a custom lossy packet to a friend. | 3093 | * Send a custom lossy packet to a friend. |
3094 | * | 3094 | * |
3095 | * The first byte of data must be in the range 200-254. Maximum length of a | 3095 | * The first byte of data must be in the range 192-254. Maximum length of a |
3096 | * custom packet is TOX_MAX_CUSTOM_PACKET_SIZE. | 3096 | * custom packet is TOX_MAX_CUSTOM_PACKET_SIZE. |
3097 | * | 3097 | * |
3098 | * Lossy packets behave like UDP packets, meaning they might never reach the | 3098 | * Lossy packets behave like UDP packets, meaning they might never reach the |
@@ -3115,7 +3115,7 @@ bool tox_friend_send_lossy_packet(Tox *tox, uint32_t friend_number, const uint8_ | |||
3115 | /** | 3115 | /** |
3116 | * Send a custom lossless packet to a friend. | 3116 | * Send a custom lossless packet to a friend. |
3117 | * | 3117 | * |
3118 | * The first byte of data must be in the range 160-191. Maximum length of a | 3118 | * The first byte of data must be in the range 69, 160-191. Maximum length of a |
3119 | * custom packet is TOX_MAX_CUSTOM_PACKET_SIZE. | 3119 | * custom packet is TOX_MAX_CUSTOM_PACKET_SIZE. |
3120 | * | 3120 | * |
3121 | * Lossless packet behaviour is comparable to TCP (reliability, arrive in order) | 3121 | * Lossless packet behaviour is comparable to TCP (reliability, arrive in order) |