-
基于IP的网络状态实时监测系统的设计与实现
基于IP的网络状态实时监测系统的设计与实现-IP-based real-time network status monitoring system design and implementation
- 2022-08-11 05:33:01下载
- 积分:1
-
asp electric materials is very good I is very like
asp课件及源代码这个课件及试题都不错,我是非常喜欢他的-asp electric materials is very good I is very like
- 2022-01-26 01:33:03下载
- 积分:1
-
C++ based on the local area network chat tool, using the Windows Socket control,...
基于C++的局域网聊天工具,用到了Windows Socket 控件,用UDP和TCP协议实现-C++ based on the local area network chat tool, using the Windows Socket control, using UDP and TCP protocol
- 2022-05-07 08:05:33下载
- 积分:1
-
The code of LAN Multicast Communication, a multicast group by adding features fr...
本代码时对局域网中多播通信的实现,有加入多播组功能,退出多播组功能,多播显示发送接收消息等。-The code of LAN Multicast Communication, a multicast group by adding features from the multicast group function, multicast, etc. show the send receive messages.
- 2022-03-25 03:23:50下载
- 积分: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
-
各个线程任务分配是这样实现的。在开始下载时,文件平均分成若干块进行下载。如第一个线程一开始的任务是从文件的0位置开始下载一直到72908位置处。线程1每次下载...
各个线程任务分配是这样实现的。在开始下载时,文件平均分成若干块进行下载。如第一个线程一开始的任务是从文件的0位置开始下载一直到72908位置处。线程1每次下载一块数据后就要调整任务,如第一次下载了20800字节的数据,那么线程1的任务将改为:20800-72908。如此下去,直到任务为72908-72908时表示线程1完成了当前的下载任务。此时,线程1就分析各个线程的任务,找出任务最为繁忙的一个线程:如线程3:14816-218724。那么线程1就自动去调整任务,拿50%的任务来再次下载。周而复始直到各个线程都完成任务。不过这里有一点需要注意:为了避免重复下载部分数据,在调整任务的时候,起始的文件便移量必须加上接受缓冲器的字节数,因为如前面所举的列子来看。线程1和线程3在平衡负载的时候,线程正在下载数据,如果所剩的数据比接受缓冲器的大小还小,线程1和线程3的部分下载数据将会重复。
在调整任务和分析任务的时候,会发现一个问题。就是读取文件数据太过频繁。于是我用了一个数据结构。在下载文件的过程中始终打开配置文件,这样速度提高了很多。在文件下载完毕后关闭文件。-various threads assignment is achieved. At the beginning of the download, the paper divided into a number of pieces of the download. As a thread of a task is to start from the position paper of 0 to start the download has 72,908 locations Department. Thread a download each one will have to adjust the data tasks, such as the first downloaded 20,800 gigabytes of data, then threaded a task will be re :20800- 72908. This situation continues until the mandate of 72908-72908 said threaded a completion of the cu
- 2022-03-20 03:50:55下载
- 积分:1
-
报文分析器,将收到的报文分16进制和ASCII码分别显示,便于调试通讯程序...
报文分析器,将收到的报文分16进制和ASCII码分别显示,便于调试通讯程序-Packet Analyzer, will receive the text of the report 16 hours in hex and ASCII, respectively, to facilitate the communication process debugging
- 2023-04-04 06:00:04下载
- 积分:1
-
IPMsg2.06版源代码只能在VC6上编译,这是源程序的补丁,合并完后能在VC6和VS2003和以上版本都能成功编译。...
IPMsg2.06版源代码只能在VC6上编译,这是源程序的补丁,合并完后能在VC6和VS2003和以上版本都能成功编译。-IPMsg2.06 version of the source code only on the VC6 compiler, which is the source patch, After the merger in VC6 and pack and above all successful compiler versions.
- 2022-04-18 16:22:44下载
- 积分:1
-
基 于 MFC 的 WinSock 客 户 端 程 序 设计
基 于 MFC 的 WinSock 客 户 端 程 序 设计-MFC-based client for WinSock Programming
- 2022-03-18 22:54:01下载
- 积分:1
-
socket网络编程
这是个socket网络编程,使用的是udp的方式用异步通信来实现的,这个程序可供刚刚学习socket编程的人员参考借鉴。里面用到的都是最基础的东西。所以有助于学习。
- 2023-03-14 09:15:04下载
- 积分:1