-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add documentation to file_transfer.proto
- Loading branch information
1 parent
35dad8a
commit eea344d
Showing
1 changed file
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { | ||
|