文件名称:ARQ

  • 所属分类:
  • Internet/网络编程
  • 资源属性:
  • 上传时间:
  • 2018-01-05
  • 文件大小:
  • 2kb
  • 下载次数:
  • 0次
  • 提 供 者:
  • yz***
  • 相关连接:
  • 下载说明:
  • 别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容均来自于网络,请自行研究使用

1)p1模拟发送方:首先从界面读取待发送字符(每接受一个字符的输入),保存到文件file1.txt中,并启动计时器; (2)p2模拟接收方,它从file1.txt中查找是否有新字符到来,并提供模拟界面给用户选择:  1、 Ack-->接收该字符   2、 NAK--〉丢弃   3、无反应--〉导致超时   将用户选择的结果记录到file2.txt中;  接收的字符保存到file3.txt 中; (3)p1等待接收方应答:读取file2.txt 决定下面的操作: 1、如果是ACK,则继续接收用户输入; 2、如果是NAK,则重传该字符; 3、如果超时仍没有新的ACK或NAK,则重传该字符。(1) p1 simulate the sender: first, to be sent from the interface to read characters (each character to accept an input), save to file file1.txt, and start the timer; (2) P2 analog receiver, it looks from file1.txt whether there are new characters come and provide analog interface for the user to choose: 1, Ack--> receiver the 2 character, NAK-- "discard 3 and no response to a timeout --" will be the result of user selection to record file2.txt; save the received characters to file3.txt; (3) p1 receiver response: reading file2.txt decided to wait for the following operations: 1, if ACK, will continue to receive user input, if it is 2; NAK, the retransmission of the character; 3, if the timeout is still no new ACK or NAK, the retransmission of the character.)
相关搜索: ARQ协议

(系统自动生成,下载前可以参看下载内容)

下载文件列表

文件名大小更新时间
ARQ\ARQ.cpp 4627 2017-12-26
ARQ\file1.txt 0 2017-12-14
ARQ\file2.txt 0 2017-12-14
ARQ\file3.txt 0 2017-12-14
ARQ\未命名1.cpp 4715 2017-12-23
ARQ 0 2017-12-23

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org