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

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

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

代码说明:

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

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

发表评论

0 个回复

  • 通过设置发送并收消息:可以设置端口,波特率,奇偶校验等参数...
    通过设置发送并接收消息:可以设置端口,波特率,奇偶校验等参数-send and receive news : you can set ports, baud rate, parity and other parameters
    2022-10-15 23:05:03下载
    积分:1
  • 简单的开发
    开发一套易用的网络通信包,以C++形式对功能进行封装。 做的相当不错,包含开发文档及代码说明-The development of a set of easy-to-use network communication packet to C form of the functions of packaging. To do a reasonably good, including the development of documentation and code description
    2022-02-26 00:38:11下载
    积分:1
  • 这是一个用c#做的聊天室,有服务器和客户端,采用多线技术
    这是一个用c#做的聊天室,有服务器和客户端,采用多线程技术-This is a c# to do with the chat rooms, there are server and client, using multi-threading technology
    2022-01-24 14:27:42下载
    积分:1
  • 5.0B版的游戏人间和心灵港湾、绿色心情三种风格。 增加了首页对最新发表主题、最强人气帖、最多回复帖的调用。 丰富了每日贴士的内容,修正了播放器序,增...
    5.0B版的游戏人间和心灵港湾、绿色心情三种风格。 增加了首页对最新发表主题、最强人气帖、最多回复帖的调用。 丰富了每日贴士的内容,修正了播放器程序,增加了在线电台栏目。 去掉了许多不必要的调用,缓解了对空间资源的消耗。 虽然功能增加不少,但速度却比5.0B版更快,也更实用。 默认前台管理员的帐号是失却的记忆,密码都是19790414-5.0B version of the game and the human soul Harbor, green heart of three styles. A Home for the latest theme, the most popular proposal, most reply brief call. The daily tips rich content, amended the players procedures, increased online radio programs. Removed a lot of unnecessary calls, mitigation of space resources consumption. Although the functional increase, but the rate faster than the version 5.0B, but also more practical. Default Account Manager outlook is the loss of memory, the password is 19790414
    2022-03-23 08:19:00下载
    积分:1
  • FTP protocol is based on TCP/IP file transfer protocol that is used in the netwo...
    FTP协议是一种基于TCP/IP的文件传输协议,用来在网络中进行文件传输。FTP是TCP/IP的一种具体应用,它工作在OSI模型的第七层,TCP模型的第四层上,即应用层,使用TCP传输而不是UDP,FTP客户在和服务器建立连接前就要经过一个“三次握手”的过程,它带来的意义在于客户与服务器之间的连接是可靠的,而且是面向连接,为数据的传输提供了可靠的保证-FTP protocol is based on TCP/IP file transfer protocol that is used in the network for file transfer. FTP is a TCP/IP to a specific application, it works in the seventh layer of OSI model, TCP model for the fourth layer, namely, the application layer, using TCP transport instead of UDP, FTP client and server must establish a connection before the After a "three-way handshake" process, it brings the significance of the connection between the client and the server is reliable, but also connection-oriented, for data transmission to provide a reliable guarantee for
    2022-02-25 08:53:38下载
    积分:1
  • 局域聊天的小序,适合学习.http连
    局域网聊天的小程序,适合学习.http连接-LAN chatting small program for learning. Http link
    2023-07-07 22:00:03下载
    积分:1
  • 一个可与IE媲美的浏览器源码。
    一个可与IE媲美的浏览器源码。-a comparable with the IE browser source.
    2022-02-26 15:03:56下载
    积分:1
  • ajax上传源代码 ,超酷 !! ajax上传源代码 ,超酷 !!ajax上传源代码 ,超酷...
    ajax上传源代码 ,超酷 !! ajax上传源代码 ,超酷 !!ajax上传源代码 ,超酷 -ajax upload source code, cool! ! ajax upload source code, cool! ! ajax upload source code, cool
    2022-10-04 19:45:03下载
    积分:1
  • 基于NUCLEUS 操作系统的FTP协议原代码
    基于NUCLEUS 操作系统的FTP协议原代码-FTP
    2022-03-02 12:41:45下载
    积分:1
  • 一个很好用的html辑器。带源码
    一个很好用的html编辑器。带源码- A very easy to use html editor. Belt source code
    2022-04-12 18:44:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载