CodePudding user response:
Pieces of writing bai ~ ~ ~CodePudding user response:
Define your own data in baotou bai, is a structure, on line before your file content data, file name, file information such as length,Then according to the length and the header information is received, can all after collect the data of a file into the write file queue,
Or a little to write a little, writes the corresponding files,
According to the actual situation, send the file size, quantity, how often, network quality to choose, such as
Subcontract the data link layer protocol is certain, change, each packet maximum 1500 bytes, it also includes the layer protocol of baotou,