-
得到本地机器的名称和IP地址
得到本地机器的名称和IP地址 -Getting name and ip address of local machine
- 2022-07-12 14:38:39下载
- 积分:1
-
局域网内的一个简单的聊天程序,分为服务器端与客户端两部分...
局域网内的一个简单的聊天程序,分为服务器端与客户端两部分-LAN within a brief chat procedures, divided into server and client part 2
- 2022-04-17 04:26:40下载
- 积分:1
-
基于IP的网络状态实时监测系统的设计与实现
基于IP的网络状态实时监测系统的设计与实现-IP-based real-time network status monitoring system design and implementation
- 2022-08-11 05:33:01下载
- 积分:1
-
它是一个套接字服务器。它接受来自客户端的连接和打印的连接…
It is a socket server. It accepts a connection from client and prints on the console a message that client writes
- 2022-08-26 11:57:19下载
- 积分:1
-
a UDP communications for the sample program. Check to make communications data,...
一个用于UDP通讯的示例程序。可以方便的查看通讯数据,以及发送数据。-a UDP communications for the sample program. Check to make communications data, and send data.
- 2022-04-23 20:05:46下载
- 积分:1
-
under the Windows network server program development, no doubt, Winsock complete...
在WINDOWS下进行网络服务端程序开发,毫无疑问,Winsock 完成端口模型是最高效的。Winsock的完成端口模型借助Widnows的重叠IO和完成端口来实现,完成端口模型懂了之后是比较简单的,但是要想掌握Winsock完成端口模型,需要对WINDOWS下的线程、线程同步,Winsock API以及WINDOWS IO机制有一定的了解。如果不了解,推荐几本书:《Inside Windows 2000,《WINDOWS核心编程》,《WIN32多线程程序设计》、《WINDOWS网络编程技术》。在去年,我在C语言下用完成端口模型写了一个WEBSERVER,前些天,我决定用C++重写这个WEBSERVER,给这个WEBSERVER增加了一些功能,并改进完成端口操作方法,比如采用AcceptEx来代替accept和使用LOOKASIDE LIST来管理内存,使得WEBSERVER的性能有了比较大的提高。 -under the Windows network server program development, no doubt, Winsock completed port model is the most efficient. Winsock port model with complete preview of overlap and complete port IO to achieve complete port after the model to understand is a relatively simple, but want to know the complete Winsock port model, the need for the Windows threads, thread synchronization, Winsock API and Windows IO mechanism of a certain understanding. If we do not understand, recommended several books : "Inside Windows 2000," Windows core programming "," WIN32 multithreaded program
- 2023-07-22 22:20:02下载
- 积分:1
-
网上聊天室,一个简单的程序例子,可以帮助初学者学习网…
网络聊天室,一个简单的例子程序,可以帮助初学者学习网络编程.-Internet chat rooms, a simple procedure example, can help beginners learning network programming.
- 2023-06-08 23:15:13下载
- 积分:1
-
一个使用window sdk写的抓包的小程序
一个使用window sdk写的抓包的小程序-A use of the capture window sdk to write a small program
- 2022-05-13 04:40:22下载
- 积分:1
-
一个网络多播的源代码
一个网络多播的源代码- A network broadcasts much source code
- 2022-03-22 05:27:52下载
- 积分: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