登录
首页 » C# » 本程序是一个用C#编写的文件传输程序,分服务端和客户端。 服务端首先监听端口,等待客户端的连接请求,一旦连接成功,即把可供客户端下载的文件名称发给客户端,客户端...

本程序是一个用C#编写的文件传输程序,分服务端和客户端。 服务端首先监听端口,等待客户端的连接请求,一旦连接成功,即把可供客户端下载的文件名称发给客户端,客户端...

于 2022-02-26 发布 文件大小:21.13 kB
0 149
下载积分: 2 下载次数: 1

代码说明:

本程序是一个用C#编写的文件传输程序,分服务端和客户端。 服务端首先监听端口,等待客户端的连接请求,一旦连接成功,即把可供客户端下载的文件名称发给客户端,客户端接受到文件名称后,选择要下载的文件,并发给服务器。服务器根据客户端发送的文件名,选择指定的文件读取文件流,并把文件流内容赋值给网络流发送到客户端,客户端将接受到的网络流赋值给文件流,并保存到文件。 注意:在使用时,要在E盘下建立一个aa文件夹,将一些文件放入其中,以供演示。-this procedure is a C# prepared by the file transfer process-server and the client. First-service monitoring ports, waits for the client to connect to the request Once connected, which is available for download client name in the paper circulated to clients, customers termination papers by name, choose to download the document and sent to the server. Servers based on the client to send the file name, select a file to read the documentation flow, and stream content to the network flow assignment sent to the client, the client will talk to the network flow assignment to the paper flow, and the preservation of the document. Note : when used in the E-aa established a folder of documents Add which, for demonstration.

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

发表评论

0 个回复

  • BarCode(EnCode)
    最新最全的二条码编码资料大全,全面介绍如何制作PDF417、QrCode、DataMatrix、Hanxin等条码制作方法,有详细图文说明,有了此文档,编码无忧。(The latest and most complete the two yards encoding information Daquan, comprehensive introduction to how to make the PDF417, QrCode, DataMatrix, Hanxin barcode production methods, with detailed captions, this document encoding worry-free.)
    2021-03-09 10:39:27下载
    积分:1
  • 0.91寸OLED显示屏.rar
    说明:  0.96OLED stm32官方代码 0.91寸OLED显示屏+12832液晶屏+显示器件提供程序原理模块(stm32 0.96OLED Official Code and other)
    2020-06-19 00:40:01下载
    积分:1
  • 51单片机稀有的mouse.h,51单片机鼠标头文件,给需要的人
    用途: 获取鼠标动作,对鼠标进行简单控制,51单片机鼠标头文件,给需要的人
    2022-04-18 10:44:48下载
    积分:1
  • Phrack-Magazine
    phrack有什么nb的地方:有人问我成为nb黑客(不是骇客)的捷径是什么?我发现这里面可以细分为:1.谁是nb的黑客? 我的答案是phrack杂志上每个领域发表开拓性文章的人; 2.如何成为nb的黑客? 我的答案是把phrack杂志大部分文章用几年时间全部真正弄懂 --不看文章,不查资料能把例子实现一遍,还能改--xscan作者(What place phrack nb: nb what I was asked to become a hacker (not a hacker) is a shortcut? I found that there can be subdivided into: (1) Who is nb hackers? My answer is to explore every area of ​ ​ published journal articles on phrack people 2 nb how to become a hacker? My answer is that most of the phrack magazine article a few years time all truly understand- do not look at the article, the example does not check the information can achieve it again, but also to change- xscan author)
    2014-01-13 18:06:16下载
    积分:1
  • ArduCopterNG_2.7
    Crius AIOP 开源飞控源码,此代码现在网上已经找不到了!
    2022-03-13 18:01:59下载
    积分:1
  • filter
    此为中值滤波方法源程序,可完成图像滤波的功能,程序完整,值得下载(This is the median filtering method of source code, to be completed by the function of image filtering, the program integrity, it is worth download)
    2009-03-16 19:00:11下载
    积分:1
  • Lid Driven Flow
    顶盖驱动流源程序,在顶盖驱动流中,顶部平板以恒定速度驱动规则区域内(左边界、有边界以及下边界固定不动)封闭的不可压流体(例如水)的流动。 流动稳定后,方腔中央会出现一个一级大漩涡,左下角和右下角会分别出现一个二级漩涡,当雷诺数Re超过一临界值后,在方腔的左上角还会出现一个漩涡。 本次模拟采用D2Q9模型,标准的碰撞流动规则,边界处理采用非平衡态外推格式。(Top-driven flow source program. In the top-driven flow, the top plate drives the flow of closed incompressible fluid (such as water) in a regular area (left boundary, bounded and fixed lower boundary) at a constant speed.)
    2020-06-18 00:20:01下载
    积分:1
  • 情感分析用词语集·知网hownet词典
    该软件可以实现微博分析、聊天分析、全网分析、网站分析、浏览分析、分词、词频统计、英文词频统计、流量分析、聚类分析等一系列文本分析(The software can realize micro-blog analysis, chat analysis, whole network analysis, website analysis, browse analysis, word segmentation, word frequency statistics, English word frequency statistics, traffic analysis, clustering analysis and a series of text analysis.)
    2020-10-29 22:49:58下载
    积分:1
  • 100
    本程序是交流压缩机的驱动程学,压缩机为三洋,功率为10KW,用的是东芝的IPM(This procedure is the exchange of compressor-driven learning process, the compressor for the Sanyo, power 10KW, using the IPM Toshiba)
    2007-11-01 21:42:30下载
    积分:1
  • STK
    STK是由美国Analytical Graphics公司开发的一款在航天领域处于领先地位的商业分析软件。STK支持航天任务的全过程,包括设计、测试、发射、运行和任务应用(STK is a leading commercial analysis software developed by Analytical Graphics Inc. in the aerospace field. STK supports the whole process of space mission, including design, test, launch, operation and mission application.)
    2020-09-21 16:07:50下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载