문제

I'm sending files over TCP using Nodejs and Adobe AIR, but when it comes to mobile devices, the hash becomes very slow in Actionscript.

My question is: do I really need to verify the hash of files after the transmission, or the TCP protocol ensures the integrity?

Thanks!

도움이 되었습니까?

해결책

Depending on exactly how you're sending the file, the receiver may not be able to know definitively that it received the entire file. There are circumstances where a connection may be severed before the file is completely received. Verifying the checksum (hash) of a file should ensure the entire file has been received.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top