登录
首页 » 套接字网络编程 » udp编程 实现客户端与服务器通信

udp编程 实现客户端与服务器通信

于 2022-01-23 发布 文件大小:13.57 kB
0 163
下载积分: 2 下载次数: 1

代码说明:

  基于UDP通信模拟Go-Back N ARQ工作过程。UDP的客户端相当于ARQ的发送端,UDP的服务端相当于接收端。 需要模拟正常通信,发端数据出错、反向数据帧出错和反向数据帧过长导致确认超时三种类型的发端重传。   当发送窗口和接收窗口的大小都等于 1时,就是停止等待协议。 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报

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

发表评论

0 个回复

  • completed an example of the server and client simple oral communication process....
    该实例完成一个服务器端和客户端简单的会话通信过程.要求主机上安装TCP/IP协议,并设定IP.服务器端和客户端使用同一台主机的不同端口号,服务器端使用的端口号为2000,客户端使用的端口号为3000. 服务器端程序先运行,首先初始化Winsock,然后创建套接字,在2000端口上进行绑定,接着在2000端口进行侦听,并进入等待状态.客户端后运行,同样首先初始化winsock,然后创建套接字,接着尝试和服务器端的连接.连接一旦建立,就可以在服务器端和客户端之间进行通信.客户端提示输入一个数字,比如输入50,那么客户端会从"data0"到"data49"发送50个字符串,输入0退出.-completed an example of the server and client simple oral communication process. Asked on the mainframe installed TCP/IP protocol and set the IP. Servers and clients using the same host of different ports, the use of the server port to 2000, clients use the port number as 3000. server operating procedures first, the first initialization Winsock, and then create socket, in 2000 ports on bonding, then the 2000 port for the interception, and entered the wait state. client after running the same protocols of the first initialization, and then create socket, and then try to server connections. connecting once established, can the server and client communications between. the client suggested the import
    2022-01-26 06:53:43下载
    积分:1
  • 一个聊天室的代码
    一个聊天室的代码-a chat room code
    2022-03-11 20:43:10下载
    积分:1
  • C# In vs2005 (asp.net2.0) From under a category, can be custom
    C# 在vs2005(asp.net2.0) 下的一个上传类,可以自定义生成的缩略图的格式及个数,还是比较方便-C# In vs2005 (asp.net2.0) From under a category, can be custom-generated form and the number of thumbnails, or more convenient
    2022-04-16 21:58:54下载
    积分:1
  • udp简单的异步通讯
    实现简单的异步通信,接收发送数据。VC写的UDP异步通信的程序 供喜欢VC程序的做为参考-VC write UDP asynchronous communication procedures for procedures like VC as a reference
    2022-06-30 07:40:32下载
    积分:1
  • TCP/IP通信
    通过套接字的编程方式,实现网络通信,采用的是C/S模式,用Csharp语言详细编制实现客户端与服务器间的通信,对需要运用C#编写实现通讯的人员具有帮助意义
    2023-02-15 09:15:04下载
    积分:1
  • ACE序员指南,ACE(自适应的环境),用C++类来封装Unix的Socket库,进库,线库...
    ACE程序员指南,ACE(自适应的网络编程环境),用C++类来封装Unix的Socket库,进程库,线程库-ACE Programmer"s Guide, ACE (Adaptive Network Programming Environment), C categories Packaging Unix socket library for the process, Thread Library
    2022-04-17 03:28:29下载
    积分:1
  • Java通过WebSocket WebRTC实现视频通话实例
    Java通过WebSocket WebRTC实现视频通话实例
    2022-09-12 16:15:03下载
    积分:1
  • TCP
    基于TCP的远程字典服务(RemoteLookup).通过在远端主机上搭建一个远程字典服务服务器,其它主机可以通过客户端程序 RemoteLookup将所需要查询的单词传送给远程主机,远程主机字典服务服务器将单词的中文释义结果返回给客户端主机.在启动服务端后,即可用客户端在线查询单词,程序示范了运用没有封装的SOCKET以及Windows SDK编程的典型过程。 -TCP-based remote dictionary service (RemoteLookup). By the remote host, build a dictionary services to the remote server, other hosts can be RemoteLookup client program will need to send a query word in the remote host, remote hosting services, server dictionary words English interpretation of the results returned to the client host. start the server, you can use client-side online query word, the program has not demonstrated the use of packaging SOCKET, as well as the typical Windows SDK programming process.
    2022-02-09 17:45:08下载
    积分:1
  • 数控电源,以及嗅探,看看它的源码,讨厌,我讨厌…
    一个nc的源码,也是嗅探器,请看源码吧,烦,我最讨厌写文字了-a nc the source, as well as sniffer, take a look at it source, annoying, I hate to write a letter
    2022-03-23 17:04:49下载
    积分:1
  • 用C实现的Ping序,实现的功能与Windows的Ping部分功能相同。可用于初学用...
    用C实现的Ping程序,实现的功能与Windows的Ping部分功能相同。可用于网络编程初学用-C realized Ping procedures, functions and the Windows Ping part of the same functions. Network programming can be used with learning
    2023-05-12 18:40:02下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载