-
achieved a socket based asynchronous communication model code, can good learning...
实现了一个基于socket异步通讯模式的代码,可以很好的学习VC中socket通讯的处理机制。-achieved a socket based asynchronous communication model code, can good learning VC socket communication mechanism.
- 2022-01-23 10:54:20下载
- 积分:1
-
非常简易的一个端口扫描程序 说明了一些端口扫描的基本思路...
非常简易的一个端口扫描程序 说明了一些端口扫描的基本思路 -a very simple description of the procedures for port scanning port scanning some basic ideas
- 2022-01-25 14:56:32下载
- 积分:1
-
监控pop3上的电子邮件收发,定时检测指定邮箱,显示邮箱内的邮件数量。...
监控pop3上的电子邮件收发,定时检测指定邮箱,显示邮箱内的邮件数量。-control on the e-mail, regular mail designated testing shows that mailbox with mail volume.
- 2022-04-07 03:08:38下载
- 积分:1
-
file under windows transmission network programming, the use of socket programmi...
windows下文件传送网络编程,使用套接字编程,客户端,服务端程序,完整,可以运行-file under windows transmission network programming, the use of socket programming, client, server-side procedures, integrity, can run
- 2022-05-23 11:39:46下载
- 积分:1
-
socket编程实例,可实现P2P连接,带客户端和服务器端源程序
socket编程实例,可实现P2P连接,带客户端和服务器端源程序-socket program sample
- 2023-02-07 18:15:04下载
- 积分: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
-
在vc环境下获取网卡的mac地址,一个小程序
在vc环境下获取网卡的mac地址,一个小程序-vc environment in the LAN access to the mac address, a small program
- 2022-08-26 11:47:06下载
- 积分:1
-
ASP文章管理系统,可以适用于是否收费文章,VIP会员注册等。...
ASP文章管理系统,可以适用于是否收费文章,VIP会员注册等。-ASP
- 2022-08-11 13:23:17下载
- 积分:1
-
Windows Socket网络编程与规范
Windows Socket网络编程与规范-Windows Socket network programming and standard
- 2022-01-26 03:36:52下载
- 积分:1
-
用于实现客户端和服务器端的通信。
采用了DOM实现了客户端和服务器端的通讯.-used to achieve the client and server communications.
- 2022-01-28 11:26:04下载
- 积分:1