summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toxcore/tox.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/toxcore/tox.h b/toxcore/tox.h
index 39832073..97107a0c 100644
--- a/toxcore/tox.h
+++ b/toxcore/tox.h
@@ -453,6 +453,13 @@ int tox_group_message_send(Tox *tox, int groupnumber, uint8_t *message, uint32_t
453 * 453 *
454 * tox_file_dataremaining(...) can be used to know how many bytes are left to send/receive. 454 * tox_file_dataremaining(...) can be used to know how many bytes are left to send/receive.
455 * 455 *
456 * If the connection breaks during file sending (The other person goes offline without pausing the sending and then comes back)
457 * the reciever must send a control packet with receive_send == 0 message_id = TOX_FILECONTROL_RESUME_BROKEN and the data being
458 * a uint64_t (in host byte order) containing the number of bytes recieved.
459 *
460 * If the sender recieves this packet, he must send a control packet with receive_send == 1 and control_type == TOX_FILECONTROL_ACCEPT
461 * then he must start sending file data from the position (data , uint64_t in host byte order) recieved in the TOX_FILECONTROL_RESUME_BROKEN packet.
462 *
456 * More to come... 463 * More to come...
457 */ 464 */
458 465
@@ -460,7 +467,8 @@ enum {
460 TOX_FILECONTROL_ACCEPT, 467 TOX_FILECONTROL_ACCEPT,
461 TOX_FILECONTROL_PAUSE, 468 TOX_FILECONTROL_PAUSE,
462 TOX_FILECONTROL_KILL, 469 TOX_FILECONTROL_KILL,
463 TOX_FILECONTROL_FINISHED 470 TOX_FILECONTROL_FINISHED,
471 TOX_FILECONTROL_RESUME_BROKEN
464}; 472};
465/* Set the callback for file send requests. 473/* Set the callback for file send requests.
466 * 474 *