资 源 简 介
本程序是一个用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.