登录
首页 » Windows Socket编程 » 一个简单的完成端口的例子,适合入门者学习

一个简单的完成端口的例子,适合入门者学习

于 2022-04-16 发布 文件大小:2.75 kB
0 242
下载积分: 2 下载次数: 1

代码说明:

一个简单的完成端口的例子,适合入门者学习-A simple example of the completion of the port, suitable for beginners to learn

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 用WinSock控件写网络聊天器
    用WinSock控件编写网络聊天器-prepared using Winsock Control Internet chat-
    2022-03-25 01:08:11下载
    积分: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
  • 旋木留言本 V1.4.rar 1 增加记录IP功能 2 防止提交留言时刷新和从外部提交留言 3 可自定义最大留言字数 4 管理留言时可自动刷新页面,大大方便管理...
    旋木留言本 V1.4.rar 1 增加记录IP功能 2 防止提交留言时刷新和从外部提交留言 3 可自定义最大留言字数 4 管理留言时可自动刷新页面,大大方便管理 5 在搜索结果内突出显示关键字 6 增强了安全性-Turnery V1.4.rar a message of the record increase in IP functions to prevent the two messages at set and from the outside can submit messages from the three largest definition of the word four voice messages can be managed automatically update pages, greatly facilitate the management of five in the search results within six highlighted keyword enhanced security
    2022-03-26 07:52:36下载
    积分:1
  • 数据传输的源代码
    数据传输程序代码-data transmission code
    2023-05-02 16:35:07下载
    积分:1
  • DELPHI写仿PS的部分功能,值得参考。
    DELPHI编写仿PS的部分功能,值得参考。-DELPHI part of the preparation of imitation PS function, it is also useful.
    2022-03-24 20:09:24下载
    积分:1
  • 在同一个线中实现异步套接字的聊天序,用以音视频…
    在同一个线程中使用异步套接字实现聊天室程序,避免了不读数据时出现阻塞-In the same thread realize the use of Asynchronous Sockets Chat procedures to avoid non-blocking when reading data
    2022-01-22 02:10:31下载
    积分:1
  • windows Mailslot example
    windows Mailslot example
    2022-01-22 06:20:07下载
    积分:1
  • Visual C++网络与数据库百例 包括全部源代码
    Visual C++网络与数据库编程百例 包括全部源代码-Visual C Network and Database Programming 100 cases, including all source code
    2022-01-30 23:32:00下载
    积分:1
  • a port scan
    一个端口扫描程序-a port scan
    2022-06-19 05:49:42下载
    积分:1
  • vc实现通过的域名查找
    vc实现通过的域名查找程序-vc achieve the domain name search procedures
    2022-02-28 20:48:44下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载