-
这本书指导软件专业人员通过陷阱和缺陷的发展…
This book guides software professionals through the traps and pitfalls of developing efficient, portable, and flexible networked applications. It explores the inherent design complexities of concurrent networked applications and the tradeoffs that must be considered when working to master them.
- 2023-04-18 10:35:03下载
- 积分:1
-
ftp协议的server端的编写,利用socket编程编写的ftp协议的server端。...
ftp协议的server端的编写,利用socket编程编写的ftp协议的server端。-ftp protocol server side of the preparation, the use of socket programming prepared by the ftp protocol server-side.
- 2022-04-18 05:09:54下载
- 积分:1
-
教你如何写一个聊天程序(step one)
教你如何写一个聊天程序(step one)-teach you how to write a chat program (step one)
- 2022-07-24 15:32:01下载
- 积分: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
-
一个可以传输图像的源码。
一个可以传输图像的源码。-an image can be transmitted to the source.
- 2023-04-09 16:45:03下载
- 积分:1
-
JAVA网络编程,JAVA多线程编程,重点是JAVA 网络编程.如UDP包的收发,建立TCP连接等....
JAVA网络编程,JAVA多线程编程,重点是JAVA 网络编程.如UDP包的收发,建立TCP连接等.-Java Network Programming, Java multithreaded programming, with a focus on Java network programming. If the UDP packet transceiver to establish TCP connection.
- 2022-03-07 14:49:42下载
- 积分:1
-
java协议分析开发包。进行网络协议开发时很有用的东东哦。
java协议分析开发包。进行网络协议开发时很有用的东东哦。-protocol analysis development kits. For network protocol is useful for the development of the Eastern oh.
- 2022-07-03 20:24:48下载
- 积分:1
-
VC++6操作网络TCP
VC++6操作网络TCP
VC++6操作网络TCP
VC++6操作网络TCP-VC++6 operating network TCP ok VC++6 operating network TCP ok
- 2023-03-16 08:05:04下载
- 积分:1
-
TCP的P2P文件传输(C++)对于新手学习TCP协议,以帮助更好地
TCP p2p文件传输(C++) 对于新手学习TCP协议,有较好的帮助-TCP p2p file transfer (C++) for the novice to learn TCP protocol, to help better
- 2022-05-21 02:30:18下载
- 积分:1
-
在Ad hoc网络中节点随机移动的情况下,对二进制指数退避算法进行了分析,在此基础上提出了一种新的退避进制(newBEB),对新算法进行了仿真分析,仿真结果表明...
在Ad hoc网络中节点随机移动的情况下,对二进制指数退避算法进行了分析,在此基础上提出了一种新的退避进制(newBEB),对新算法进行了仿真分析,仿真结果表明,新的退避算法能提高移动情况的Ad hoc网络的公平性.-In Ad hoc networks of mobile nodes random circumstances, of the binary exponential backoff algorithm analysis, on this basis proposes a new backoff hexadecimal (newBEB), a new algorithm for the simulation analysis, simulation results show that new backoff algorithm can improve the movement of the Ad hoc network fairness.
- 2022-03-24 09:06:55下载
- 积分:1