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

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

于 2022-02-26 发布 文件大小:21.13 kB
0 61
下载积分: 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 个回复

  • Psanweigenzonu
    三维纯角度被动跟踪定位的最小二二乘_卡尔曼滤波算法可直接使用。 (The three-dimensional pure point of view passive tracking and positioning of the least-squares _ Kalman filter algorithm can be used directly.)
    2012-06-09 09:15:46下载
    积分:1
  • SCPI-command-parse
    SCPI命令处理算法,当前能找到兼容性最强的算法,除了商用的之外。(SPCI command parse algorith.)
    2012-08-27 21:49:45下载
    积分:1
  • Read-digital
    实现念数字,如输入11 输出shi yi(Realize read Numbers, such as input and output shi yi)
    2011-12-21 08:58:52下载
    积分:1
  • idfhd
    考虑雨衰 阴影 和多径影响,可以广泛的应用于数据预测及数据分析,采用了小波去噪的思想。( Consider shadow rain attenuation and multipath effects Can be widely used in data analysis and forecast data, Using wavelet denoising thought.)
    2017-04-25 21:02:35下载
    积分:1
  • spinverter
    单相光伏并网逆变器 孤岛检测 双环控制 MPPT最大功率追踪(Single-phase photovoltaic inverter islanding detection dual-loop control)
    2015-11-25 13:16:39下载
    积分:1
  • ma730磁编
    说明:  ma730磁性编码器的使用说明,数据手册(MA730 Magnetic Encoder Instructions, Data Manual)
    2020-06-21 01:00:02下载
    积分:1
  • sysidjob3
    该程序初步实现了M序列的生成,并且详细地进行了频域法的系统辨识分析。(The program is the initial realization of the M-sequence generation, and detail the frequency domain method of system identification analysis.)
    2012-06-09 17:18:09下载
    积分:1
  • planets
    planet示例演示了如何实现一个应用程序,该应用程序结合了使用基于three.js库的Canvas3D呈现和Qt Quick 2D元素。这个例子展示了我们太阳系的八颗行星和太阳。(The Planets example demonstrates how to implement an application that combines the use of three.js library-based Canvas3D rendering with Qt Quick 2D elements. The example shows the eight planets of our Solar System with the Sun.)
    2020-06-25 18:00:01下载
    积分:1
  • flocking--MALTLAB
    多智能体蜂拥控制MATLAB基本仿真程序,帮助新手学习交流(multi-agent system of flocking matlab simulation programa )
    2021-04-19 14:38:51下载
    积分:1
  • mine
    自己编的扫雷的小程序,很用心的编写,对新手应该会有帮助。里面的小砖块、计数值显示都是小控件,以后有类似用途应该都用得上。控件以动态库的形式。(Own a small demining program, very hard to write, it should be helpful for the novice. Inside the small brick, the count display controls are small, after a similar purpose should all need them.)
    2015-08-31 23:57:05下载
    积分:1
  • 696518资源总数
  • 105559会员总数
  • 1今日下载