您现在的位置:龙卷风首页 ›› 网络编程 ›› 阅读文章

checksum

在学习java的zip类库的时候,书中提到了检核码(checksum),按照字面的意义,应该就是用来检验数据完整性的代码。

what is checksum?
什么是checksum?

A simple error-detection scheme in which each transmitted message is accompanied by a numerical value based on the number of set bits in the message. The receiving station then applies the same formula to the message and checks to make sure the accompanying numerical value is the same. If not, the receiver can assume that the message has been garbled.
一种简单的错误探测机制,经过这种机制,每一条被发送出去的信息都附带着一个基于信息生成的数字。接收方收到信息后,使用相同的机制生成这种被称为checksum的数字,并检查它们是否相等。如果不相等,接收方就认为接收到的信息不完整。

引用地址:http://www.webopedia.com/TERM/C/checksum.html

作者 不见不散 本文仅代表作者观点,与龙卷风资讯网立场无关。

我来说两句

1 楼 阿谁 发表于 2006-11-3 From IP: 210.22.21.129
第一次见到这个东东.
作者主页: 
2 楼 小玉 发表于 2006-11-3 From IP: 210.22.24.194
哈哈哈。checksum,checksun,我天天和checksum打交道,给折腾惨啦。
作者主页: 
内容/Content