summaryrefslogtreecommitdiff
path: root/toxcore/tox.h
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-10-15 17:34:22 -0400
committerirungentoo <irungentoo@gmail.com>2013-10-15 17:34:22 -0400
commit6952daa042c5f3e041cbcb90e253edbcd3f90baa (patch)
treee8bab9167cb9904b05666933823cc076be7076c8 /toxcore/tox.h
parent0aa6ba8e2811fdc0a67e402dedc044b3ca22d610 (diff)
Updated public api.
Diffstat (limited to 'toxcore/tox.h')
-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 *