Skip to content

Commit

Permalink
add documentation to file_transfer.proto
Browse files Browse the repository at this point in the history
  • Loading branch information
liamcottle committed Dec 9, 2024
1 parent 35dad8a commit eea344d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/public/protos/file_transfer.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/**
File transfer protos written by Liam Cottle <[email protected]>
- 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 {
Expand Down

0 comments on commit eea344d

Please sign in to comment.