-
这是一个用完成端口(IO Completion port)写的echo server,运行iocp.exe后,在控制台使用 telnet 127.0.0.1 7...
这是一个用完成端口(IO Completion port)写的echo server,运行iocp.exe后,在控制台使用 telnet 127.0.0.1 7 就可以连接上,然后你输入什么屏幕就显示什么。-This a complete port with (IO Completion port) was the echo server, running iocp.exe after the console using telnet 127.0.0.1 7 can be connected to, then you input on what the screen shows what.
- 2022-03-05 12:51:26下载
- 积分:1
-
该文件详细介绍开发过程中的具体问题.他给设计者很好的借鉴功能.是开发人员比被东西....
该文件详细介绍开发过程中的具体问题.他给设计者很好的借鉴功能.是开发人员比被东西.-the document in detail the process of developing specific issues. He gave a very good designers draw function. Yes developers than by things.
- 2022-03-07 10:42:55下载
- 积分: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
-
一个超
一个体积超小的在线编辑器,UBB里经常用到-an ultra-small size of the online editor, frequently used UBB
- 2023-06-16 23:15:03下载
- 积分:1
-
一个简单的聊天室程序 源程序齐全 有主机服务器端和客户端
一个简单的聊天室程序 源程序齐全 有主机服务器端和客户端-A simple chat room hosts have complete program source server-side and client
- 2023-01-05 20:15:03下载
- 积分:1
-
messenger elf is a simple chat tools. A major demonstration is the main network...
信使小精灵,是一个简易的聊天工具。主要是演示了网络编程的主要步骤。本程序使用封装好的函数库,使得应用层不需要考虑网络消息是如何被接受和发送的,也不需要考虑数据粘包和丢包的刺手问题,你只要调用相应的函数就可以了。函数库为你做好了这些工作。你只需要定义自己的协议头和消息结构体,定义好网络消息的回调函数就可以了。-messenger elf is a simple chat tools. A major demonstration is the main network programming steps. The programs use Packaging good libraries, makes application layer need not consider the network news is how it has been accepted and sent, and do not need sticky packets of data and packet loss of a thorn in hand, as long as you call the corresponding function on it. Functions well as your work. You only need to define its own agreement head and the structure of news, the definition of a good network news callback function on it.
- 2023-08-16 20:20: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
-
一个很好的连接助推器,希望对你有帮助
一个很好的连接助推器,希望对你有所帮助
- 2022-01-25 22:39:56下载
- 积分:1
-
网络版本的中国象棋服务器源代码,实现象棋的基本功能,对大家的游戏编程可以起到很好的启发...
网络版本的中国象棋服务器源代码,实现象棋的基本功能,对大家的游戏编程可以起到很好的启发-network version of the Chinese chess server source code, chess achieve the basic functions of the game programming we can play good source of inspiration
- 2022-05-13 09:28:05下载
- 积分:1
-
简单的FTP服务器和客户端程序,可以实现简单通讯。
简单的FTP服务器和客户端程序,可以实现简单通讯。-Simple FTP server and client programs, you can realize simple communication.
- 2022-05-19 15:37:26下载
- 积分:1