-
vc下基于winsock2的网络嗅探器的程序。可以查看数据包的协议、源目的地址和端口以及数据及其大小...
vc下基于winsock2的网络嗅探器的程序。可以查看数据包的协议、源目的地址和端口以及数据及其大小-vc-based network sniffer Winsock2 procedures. Can view the data packet protocol, source and destination address and port data and the size of
- 2022-07-22 12:51:29下载
- 积分:1
-
含有接收、发送、服务三个线程的Socket程序
含有接收、发送、服务三个线程的Socket程序 -Three socket apps contains accept, send and server
- 2022-07-11 03:53:09下载
- 积分:1
-
Serial Communication programming, java language versions, and serial communicati...
串口通讯编程,java 语言版本的,串口通讯编程,java 语言版本的-Serial Communication programming, java language versions, and serial communication programming, java language versions of
- 2022-01-31 03:00:12下载
- 积分: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
-
利用MFC实现了Telnet协议,作为Telnet客户端工具,可以连接Telnet服务器.实现技术包括:1,创建Telnet连接.2,从Telnet服务器接收数...
利用MFC实现了Telnet协议,作为Telnet客户端工具,可以连接Telnet服务器.实现技术包括:1,创建Telnet连接.2,从Telnet服务器接收数据.3,向Telnet服务器发送数据.-use of Telnet Protocol, Telnet client as a tool, Telnet server can be connected. Technology include : 1. establish Telnet connection .2. Telnet servers from receiving data .3 to the Telnet server to send data.
- 2022-03-21 00:16:16下载
- 积分:1
-
网页特效,字的移动,颜色的控制,可以使网页看起来很生动,丰富。...
网页特效,字的移动,颜色的控制,可以使网页看起来很生动,丰富。-netnew word of the movement, color control, web pages appear to be very lively and rich.
- 2022-02-02 21:46:17下载
- 积分:1
-
局域网内的聊天工具源代码...原理简单...值得初学者学习
局域网内的聊天工具源代码...原理简单...值得初学者学习-LAN chat tool for source code ... The principle should be simple for beginners to learn ...
- 2022-03-20 09:03:16下载
- 积分:1
-
RFC793
RFC793传输控制协议(TRANSMISSION CONTROL PROTOCOL)-RFC793
- 2022-02-04 15:26:24下载
- 积分:1
-
顾名思义一个可视电话的程序,不过没有条件做实验。
顾名思义一个可视电话的程序,不过没有条件做实验。-As the name suggests a visual telephone procedures, but I did not do the experiment conditions.
- 2022-03-25 07:03:52下载
- 积分:1
-
本例实现了一个完整的四人网络麻将游戏,该程序集服务器与客户端功能与一体。本例主要介绍了非对等的网络服务功能的建立,传输信息的序列化,建立虚拟的三维空间,绘制图形...
本例实现了一个完整的四人网络麻将游戏,该程序集服务器与客户端功能与一体。本例主要介绍了非对等的网络服务功能的建立,传输信息的序列化,建立虚拟的三维空间,绘制图形和显示位图,在内存中创建位图和绘制图形等。
-the cases to achieve a complete network of four mahjong games, the procedures set server and client functions and integration. The cases are introduced to the non-network services established, the sequence of transmission of information, the establishment of a virtual three-dimensional space, drawing and display bitmap in memory to create bitmap graphics and mapping.
- 2023-03-25 04:00:03下载
- 积分:1