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

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

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

  • 基于51单片机的智能小车超车程序
    全国大学生电子大赛智能超车小车的自作程序,程序简陋,但要求都满足,效果一般,超声波检测不准确,如果修改成蓝牙可能会更好,如果有测速反馈可能效果更好
    2023-04-07 23:35:04下载
    积分:1
  • halfedge
    国外一个计算机图形学课程的作业源代码,输入*.obj文件中的三角形网格,构造模型的半边数据结构,使用动态数组和哈希表,提取棱边并用opengl突出显示。(A half-edge mesh adjacency data structure is provided, along with a very simple .obj mesh parser. Throughout this code you are asked to consider the efficiency of various mesh operations. )
    2011-04-23 17:44:26下载
    积分:1
  • Sourcecode-V1.0
    ePhoto for compare between production line scan barcode and employee to see picture
    2013-12-27 17:48:35下载
    积分:1
  • anti_blaster
    anti blaster worm source code
    2009-07-27 10:40:38下载
    积分:1
  • 保存或打印窗体的图像有或没有 VB.NET 中的装饰
    这个项目演示了如何保存或打印窗体的图像有或没有 VB.NET 中的装饰。程序使用 BitBlt API 函数,将该窗体的图像复制到一个位图。然后,它可以保存或打印图像。 这个项目提供了一些很好的例程来捕捉和操纵形成图像。 GetFormImage: 返回窗体的图像有或无装饰 (边框、 标题栏等) PrintForm: 打印窗体的图像有或无装饰 SaveFormImage: 保存窗体的图像有或无装饰
    2022-07-15 06:43:20下载
    积分:1
  • CFD源代码,可并行,Roe格式 ,能较好应用在搞超声速计算中
    CFD源代码,可并行,Roe格式 ,能较好应用在搞超声速计算中
    2022-11-30 00:15:03下载
    积分:1
  • VC-code
    LBM 初学者的资料,模拟的各个部分都有很详细的分析(this is the materials for the freshman of LBM study,it is good tool)
    2015-04-14 15:00:46下载
    积分:1
  • 时钟
    此代码为在proteus中仿真代码,实现功能:利用液晶显示时间,通过按键调节时分秒。(This code is a simulation code in proteus. It realizes the function of adjusting the time and seconds by keystrokes using liquid crystal display time.)
    2019-01-01 10:42:37下载
    积分:1
  • Point102
    用c++求折线的长度,程序可以改变输入点的个数,包含所有的代码.(C++ line with the length requirements, the program can change the number of input points, including all of the code.)
    2016-02-29 01:26:10下载
    积分:1
  • gcmex-2.3.0
    最小化能量函数的图割方法,由Brian Fulkerson提出(- MATLAB wrapper for graph cuts multi-label energy minimization)
    2018-05-24 16:57:11下载
    积分:1
  • 696516资源总数
  • 106658会员总数
  • 16今日下载