Skip to content

File transmission

MarcusW edited this page Feb 27, 2016 · 2 revisions

Now there is only one step remaining: Sending the accepted files to the server. The files are sent one by one. Each file transmission is initialized with one package only containing the id of the next file.

[2 BYTES] File ID                   // ID of the next sending file (16 bit)

Because of the package size is limited we have to send the content of each file split up into mulitple packages. Each of these packages should contain 2^14 bytes, only the size of the last package might vary. The server reads for data packages until the expected file size (see 3.2.2 File requests) is reached.

[UP TO 2^14 BYTES] Data             // Content of the currently sending file