-
视频源码 视频源码 视频源码
视频源码 视频源码 视频源码-Video source video source video source video source video source
- 2023-07-17 05:30:03下载
- 积分:1
-
计算校验和
校验和算法描述:为保证网络上传输的数据的可靠性,在许多协议中都设置了校验和项,例如:IPv4、ICMPv4、IGMPV4、ICMPv6、UDP...
计算校验和
校验和算法描述:为保证网络上传输的数据的可靠性,在许多协议中都设置了校验和项,例如:IPv4、ICMPv4、IGMPV4、ICMPv6、UDP和TCP 等等。计算这些校验和的算法称为网际校验和算法,简单来说就是:把被校验的数据16位进行累加,然后取反码,若数据字节长度为奇数,则数据尾部补一个字节的0以凑成偶数。
由于从输入文件读入的数据不能直接满足计算校验和的条件,所以首先对从文件读入缓冲区的数据进行预处理,即读入缓冲区时忽略空格。由于累加是按16位进行的,所以每次从缓冲区中读出4个字符,并将字符转换成对应的16进制数字,如此依次累加,直至数据全部读完。
还有一种情况,即如果数据长度为奇数个字节,则需要判断,并补0累加。程序中利用的是缓冲区长度计数器i和当前读取到计数器j判断数据长度是否为奇数。即如果数据长度为偶数,则读完数据时当前读取到计数器j的值应与缓冲区长度i相等,而如果数据长度为奇数,则读完数据时,当前读取到计数器j>缓冲区长度i,此时需将缓冲区中剩余的两个字符读出,并补0,转换成相应16进制数以后参与累加。
当累加结束后,将累加和的16位以上数据位移下再进行一次累加,并对最后累加和取反即得所求校验和。
-calculated checksum checksum algorithm Description : To ensure the network transmission of data reliability, in many of the agreements are set up and calibration, for example : IPv4, ICMPv4, IGMPV4, ICMPv6. UDP and TCP so on. Calculating checksum algorithm called the Internet checksum algorithm, the simple answer is : as has been the calibration data for 16 cumulative, and then take the anti-code, if the data byte length of the odd, data will make up the tai
- 2022-01-26 06:39:03下载
- 积分:1
-
用asp.net生成随机验证码 用asp.net生成随机验证码
用asp.net生成随机验证码 用asp.net生成随机验证码-using random test generation Asp. Net yards with Asp. Net randomly generated test code
- 2022-08-04 01:45:32下载
- 积分:1
-
C++ builder 编的发送邮件代码
C++ builder 编的发送邮件代码-C++ Builder made the send mail code
- 2022-08-24 12:40:57下载
- 积分:1
-
Very good solution to large file transfers, as well as send video data can also...
很好的解决大文件传输,以及视频数据的发送也可以借鉴.-Very good solution to large file transfers, as well as send video data can also learn from.
- 2023-05-16 04:15:02下载
- 积分:1
-
purpose : structural frame for understanding the concept of network protocol, th...
目的:
构造帧对于理解网络协议的概念、协议执行过程,以及网络问题处理的一般方法具有重要的意义。本次练习的目的是通过数据链路层与介质访问控制层的学习,根据数据链路层的基本原理,针对普遍应用的Ethernet帧,通过构造一个具体的帧,引导同学深入理解网络协议的基本概念与网络问题处理的一般方法。
要求:
1、编写程序,根据给出的原始数据,组装一个IEEE802.3格式的帧。题目附带的文件为二进制原始数据(文件名分别为input1和input2),要求程序为命令行程序,比如可执行文件名为framer.exe,则命令行形式如下:
framer inputfile outputfile
inputfile为原始数据文件,outputfile为输出结果。
操作系统、使用语言和编译环境不限,但在交作业同时要求注明。
2、输出:对应input1和input2的结果分别为output1和output2
3、要有良好的编程规范和注释
4、写文档
-purpose : structural frame for understanding the concept of network protocol, the implementation of an agreement, network issues and the general approach has important significance. The purpose of the exercise through the data link layer and the MAC layer of learning, according to the data link layer to the basic principles against the universal application of the Ethernet frames, by constructing a concrete frame, to guide students in-depth understanding of network protocols and the basic concepts of network issues to deal with the general approach. Requi
- 2022-03-06 07:04:47下载
- 积分:1
-
This is an automatically updated online VC procedures, enclosing detailed descri...
这是一个自动更新的VC在线程序,附详细说明和使用方法!
- 2022-08-19 13:31:10下载
- 积分:1
-
一个小浏览器,能够基本功能,如向前、向后、跳跃等
一个小浏览器,能实现基本功能,如前进,后退,跳转等-a small browser, able to basic functions, such as forward, backward, jump, etc.
- 2022-08-05 22:40:08下载
- 积分:1
-
http:/ / / /文件/ halgogo vb98.rar www.cnblogs.com
http://www.cnblogs.com/files/halgogo/vb98.rar
- 2023-06-01 10:40:03下载
- 积分:1
-
以太帧的解析和封装程序
GCC下编译通过
以太帧的解析和封装程序
GCC下编译通过-Analysis of Ethernet frames and packaging procedures
- 2022-06-21 09:48:55下载
- 积分:1