mirror of
https://github.com/PeernetOfficial/core.git
synced 2026-07-19 03:27:50 +01:00
File Transfer: Add header to file transfer to indicate file size and transfer size. This is important to know when to stop reading. It will also help when reading only ranges (which is important for video streaming).
New function FileTransferReadHeaderUDT to read the header. Warehouse: ReadFile return count bytes read
This commit is contained in:
@@ -34,7 +34,7 @@ type MessageTransfer struct {
|
||||
}
|
||||
|
||||
const (
|
||||
TransferControlRequestStart = 0 // Request start transfer of file. Data at byte 34 is offset and limit to read, each 8 bytes.
|
||||
TransferControlRequestStart = 0 // Request start transfer of file. Data at byte 34 is offset and limit to read, each 8 bytes. Limit may be 0 to indicate entire file.
|
||||
TransferControlNotAvailable = 1 // Requested file not available
|
||||
TransferControlActive = 2 // Active file transfer
|
||||
TransferControlTerminate = 3 // Terminate
|
||||
|
||||
Reference in New Issue
Block a user