資源簡介
采用FTP PASV模式設計一個FTP服務器程序和一個FTP客戶機程序,具有文件夾內容瀏覽和文件下載功能,服務器程序能夠接收多個客戶機的FTP請求并且能夠對客戶機身份進行驗證。
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Linq;
using?System.Text;
using?System.Threading.Tasks;
using?System.Windows.Forms;
using?System.Net;
using?System.Net.Sockets;
using?System.Threading;
using?System.IO;
using?System.Collections;
using?System.Net.NetworkInformation;
namespace?client
{
???
????public?partial?class?Form1?:?Form
????{
????????TcpClient?controltc;
????????NetworkStream?controlns;
????????StreamReader?controlsr;
????????StreamWriter?controlsw;
????????private?static?string?ext?=null;
????????public?Form1()
????????{
????????????InitializeComponent();
????????????this.buttonUpDir.Enabled=?false;
????????????Control.CheckForIllegalCross
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-11-27?10:17??client\
?????目錄???????????0??2018-11-13?12:46??client\.vs\
?????目錄???????????0??2018-11-13?12:46??client\.vs\client\
?????目錄???????????0??2018-11-13?12:46??client\.vs\client\v14\
?????文件???????44544??2018-01-07?03:33??client\.vs\client\v14\.suo
?????文件???????17408??2017-12-10?23:06??client\client.exe
?????文件?????????985??2017-12-04?22:30??client\client.sln
?????目錄???????????0??2018-11-13?12:46??client\client\
?????文件?????????189??2017-12-04?22:30??client\client\App.config
?????目錄???????????0??2018-11-13?12:46??client\client\bin\
?????目錄???????????0??2018-11-13?12:46??client\client\bin\Debug\
?????文件???????17408??2017-12-10?23:06??client\client\bin\Debug\client.exe
?????文件?????????189??2017-12-04?22:30??client\client\bin\Debug\client.exe.config
?????文件???????34304??2017-12-10?23:06??client\client\bin\Debug\client.pdb
?????文件???????22696??2018-01-07?03:28??client\client\bin\Debug\client.vshost.exe
?????文件?????????189??2017-12-04?22:30??client\client\bin\Debug\client.vshost.exe.config
?????文件?????????490??2017-03-19?05:00??client\client\bin\Debug\client.vshost.exe.manifest
?????文件????????3950??2017-12-05?00:06??client\client\client.csproj
?????文件???????10672??2017-12-05?11:26??client\client\Form1.cs
?????文件????????8813??2017-12-05?01:12??client\client\Form1.Designer.cs
?????文件????????5817??2017-12-05?01:12??client\client\Form1.resx
?????目錄???????????0??2018-11-13?12:46??client\client\obj\
?????目錄???????????0??2018-11-13?12:46??client\client\obj\Debug\
?????文件????????1551??2018-01-07?03:28??client\client\obj\Debug\client.csproj.FileListAbsolute.txt
?????文件????????1012??2017-12-05?01:13??client\client\obj\Debug\client.csproj.GenerateResource.Cache
?????文件????????2384??2017-12-05?00:06??client\client\obj\Debug\client.csprojResolveAssemblyReference.cache
?????文件???????17408??2017-12-10?23:06??client\client\obj\Debug\client.exe
?????文件?????????180??2017-12-05?01:13??client\client\obj\Debug\client.Form1.resources
?????文件???????34304??2017-12-10?23:06??client\client\obj\Debug\client.pdb
?????文件?????????180??2017-12-05?00:06??client\client\obj\Debug\client.Properties.Resources.resources
?????文件????????1464??2017-12-05?08:54??client\client\obj\Debug\DesignTimeResolveAssemblyReferences.cache
............此處省略48個文件信息
評論
共有 條評論