diff --git a/src/public/protos/file_transfer.proto b/src/public/protos/file_transfer.proto index 40121e8..4c9817a 100644 --- a/src/public/protos/file_transfer.proto +++ b/src/public/protos/file_transfer.proto @@ -1,3 +1,15 @@ +/** + File transfer protos written by Liam Cottle + - sender should send an OfferFileTransfer to other user + - recipient should send back an AcceptFileTransfer or RejectFileTransfer + - recipient can tell the sender how big each file part can be when accepting the file transfer + - sender should send the first file part to the recipient when receiving an AcceptFileTransfer + - recipient should then send RequestFileParts until all remaining parts are received + - sender should send a FilePart for each index in partIndexes when a RequestFileParts is received + - recipient should send CompletedFileTransfer when all parts are received + - sender and recipient can send CancelFileTransfer to tell the other side they are no longer interested in the file + - todo: add fileHash or fileCrc in OfferFileTransfer to allow recipient to confirm assembled parts are not corrupted + */ syntax = "proto3"; message FileTransferPacket {