A file transfer back to the normal difference
The biggest difference: much larger than ordinary file data bytes of data bytes
File transfer need fragmentation, fragmentation assembly
How canceled during file transfer without affecting the subsequent Packet sent
File transfer check to ensure the accuracy of the data (logic)
Second, the normal data transmission
If it is a large file, all the data is loaded into an array of bytes, it will lead to too much memory footprint
Third, file fragmentation
Fourth, the model file messages
Packet streaming into
Input and output stream into IoArgs
Dispatcher adjust scheduling logic