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

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

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

  • st
    说明:  S变换在Matlab中对于信号处理方面的应用(S transform in Matlab for signal processing applications)
    2013-04-21 20:38:24下载
    积分:1
  • AV_ST test3
    基于stm32的vx8812驱动实现,控制AV视频图像的输出(Vx8812 driver implementation based on stm32)
    2020-06-22 16:40:02下载
    积分:1
  • 使用C#编程实现UDP套接字编程-Send和Receive
    使用C#编程实现UDP套接字编程-Send和Receive-use C# programming UDP socket programming- Send and Receive
    2022-04-01 14:52:05下载
    积分:1
  • AD7606
    很好的例程, 【EWARMv6】     IAR公司EWARM工程文件夹 【MDK-ARM(uV4)】KEIL的MDK工程文件,uVision4版本。 output(mdk).hex - 采用KEIL MDK编译好的可执行文件(定位在CPU内部Flash执行),可以直接下载到CPU内部Flash执行。 output(iar).hex - 采用IAR EWARM编译好的可执行文件(定位在CPU内部Flash执行),,可以直接下载到CPU内部Flash执行。 project.uvproj       MDK uV4工程文件,双击这个文件可启动MDK project.uvopt        MDK uV4工程配置参数 CpuRAM.ini           在CPU内部RAM调试的脚本(文本文件),当启动调试时,调试器自动执行脚本文件,将代码装载在CPU内部RAM CopyHex_Flash.bat    批处理文件,编译连接成功后将FlashObj下的Hex文件复制到前级目录
    2022-03-12 05:03:34下载
    积分:1
  • 4756644
    TabBarCustom (所有TabBar之间切换),精选ios编程学习源码,很好的参考资料。(TabBarCustom (switching between all TabBar), selection of learning IOS programming source code, a good reference.)
    2013-12-13 12:31:16下载
    积分:1
  • pwdremover
    PWDRemover,是一款专业的pdf文件密码破解器软件。本软件可以破解Adobe Acrobat PDF文件的“所有者密码”。可以快速破解所有PDF文件密码!大家都知道被加密的PDF文件是不能被编辑和打印的。(PWDRemover is a professional PDF file password cracking software. This software can crack the owner password of Adobe Acrobat PDF file. Can quickly crack all PDF file password! As we all know, encrypted PDF files can not be edited and printed.)
    2021-04-23 11:28:48下载
    积分:1
  • Naudio 音频处理类 实例源码下载
    Naudio 音频处理类 实例源码下载
    2014-07-21下载
    积分:1
  • oofemvs2010-20
    oofem在vs2010下的sln文件,文件路径和.h以及.c文件的添加已经做好(oofem under the vs2010 sln file, the file paths and. h and. c file is ready to add)
    2011-02-14 16:43:07下载
    积分:1
  • PCtoLCD2002
    字摸提取软件,可以是图片,可以是汉字,并且大小可调,好用至极(Braille extraction software, which can be pictures, which can be characters, and the size is adjustable, extremely easy to use)
    2013-08-22 21:02:23下载
    积分:1
  • WPF实现冰雪动画效果
    WPF实现冰雪动画效果,使用WPF中最效率的方法实现多动画对象操作,实现下雪效果。
    2022-02-02 22:36:20下载
    积分:1
  • 696516资源总数
  • 106446会员总数
  • 9今日下载