登录
首页 » 套接字网络编程 » 基于WinSocket和TCP协议实现的一个基本的服务器,可用于测试客户端是否正确

基于WinSocket和TCP协议实现的一个基本的服务器,可用于测试客户端是否正确

于 2022-03-23 发布 文件大小:4.51 kB
0 165
下载积分: 2 下载次数: 1

代码说明:

应用背景刚接触网络编程,通过学习使用winsocket实现了一个简单的服务器程序,可以接收中英文字符串、数组能功能。将socket的API封装到一个类中,可以方便的快捷的进行修改,实现自己想要的功能。根据封装的WSocket类,可以快速的实现一个客户端程序。关键技术winsocket套接字编程,调用winsocket的API函数封装到一个类中。使用TCP协议,以及流式套接字编程。在编程过程中要注意主机字节顺序和网络字节顺序的区别。

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

发表评论

0 个回复

  • IEEE 802.11a
    IEEE 802.11a-1999 (8802-11:1999/Amd 1:2000(E)), IEEE Standard for Information technology―Telecommunications and information exchange between systems―Local and metropolitan area networks―Specific requirements―Part 11: Wireless LAN Medium Access Control (MAC) and Physical Layer (PHY) specifications―Amendment 1: High-speed Physical Layer in the 5 GHz band -IEEE 802.11a-1999 (8802-11:1999/Amd 1:2000 (E)), IEEE Standard for Information technology-Telecommunications and information exchange between systems-Local and metropolitan area networks-Specific requirements-Part 11: Wireless LAN Medium Access Control (MAC) and Physical Layer (PHY) specifications-Amendment 1: High-speed Physical Layer in the 5 GHz band
    2022-04-21 04:09:44下载
    积分:1
  • EasyClass是针对某大学Web选课子系统一个自动的课检索序。EasyClass允许用户对希望关注的课自动检测空位,并且可以帮助学生自动选课。Easy...
    EasyClass是针对某大学Web选课子系统一个自动的课程检索程序。EasyClass允许用户对希望关注的课程自动检测空位,并且可以帮助学生自动选课。EasyClass根据课程号,模拟手动方式查询课程选课情况,从选课系统中提取出被关注课程的选课人数,通过对比后分析出该课程是否尚存空位,若可选,则对用户作出通报,或者直接把课程选上,从而实现完全自动化选课。主要是通过使用Borland C++Builder 6 内带的控件TNMHTTP和TCppWebBrowser,配合WinAPI函数和一些常用的控件开发出来的。TNMHTTP控件可以对外发出http协议请求,并且把返回结果内容的纯文本代码;而TCppWebBrowser就是浏览器控件,可以实现类似IE的效果。压缩包内含开发文档。-EasyClass against a university Web subsystem an automatic Elective courses retrieval procedures. EasyClass allows users to hope that the courses concerned automatic detection space, and can help students automatically Course. EasyClass based curriculum, simulation manually inquiries Elective courses, classes from the system extracted courses were concerned about the number of classes, through comparative study of the analysis of whether or not the programs surviving vacancy, if optional, the user make informed, or courses directly elected, so as to achieve a fully automated Elective. Mainly through the use of Borland C Builder within six with the
    2023-02-22 01:50:04下载
    积分:1
  • FTP服务器源代码
    FTP服务器源代码-FTP server source code
    2022-02-02 13:30:35下载
    积分:1
  • 显示上所有动态的IP地址,学习用的好代码。
    显示网络上所有动态的IP地址,学习用的好代码。-Shows the network of all dynamic IP addresses, a good code to learn.
    2022-02-26 08:01:50下载
    积分:1
  • vb教 快速入门
    vb教程 快速入门-vb Quick Start Guide
    2022-05-07 21:05:30下载
    积分:1
  • 口调试助手,很有用。口调试助手
    网络接口调试助手,很有用。网络接口调试助手-Network interface debugging assistants, very useful.
    2023-04-15 02:00:03下载
    积分:1
  • Introduced the complex network of community characteristics into the source code...
    介绍复杂网络社区划分社区特性的源代码,尤其是无标度网络-Introduced the complex network of community characteristics into the source code of the community, in particular, scale-free network
    2022-03-16 10:31:50下载
    积分:1
  • send UDP data packet network
    发送UDP网络数据包-send UDP data packet network
    2022-02-04 00:13:35下载
    积分:1
  • 这是一个介绍通讯的书籍,学习窗口
    这是一本介绍网络通信的好书,学习Windows网络编程的必备书籍之一。-This is an introduction of network communication books, learning Windows network programming, one of the essential books.
    2023-01-12 10:45:08下载
    积分:1
  • 操作系统中,读者写者的问题
    操作系统中,读者写者的问题-operating system, readers wrote to the problem
    2023-05-03 19:00:02下载
    积分:1
  • 696518资源总数
  • 106148会员总数
  • 10今日下载