You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MarcusW edited this page Feb 27, 2016
·
1 revision
Each file transmission requires to be approved by the server. To tell the server which files we're planning to send, we need to send information about these files in file requests. To be able to send multiple file requests in a list the following package is sent once per file. The first byte shows to the server if the following file request is the last one. As long as this parameter is false (0) the server awaits one more package.
[1 BYTE] Last File ( 0 / 1 ) // Is this the last file request?
[2 BYTES] File ID // Unique ID of the file (16 bit)
[5 BYTES] File Size // Size of the file in bytes (40 bit)
[STRING] File Name // Name of the file