基本信息
源码名称:c#类库:ftp客户端 支持主动和被动模式
源码大小:0.10M
文件格式:.rar
开发语言:C#
更新时间:2019-06-28
   友情提示:(无需注册或充值,赞助后即可获取资源下载链接)

     嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300

本次赞助数额为: 2 元 
   源码介绍
c#ftp客户端 支持主动和被动模式,c#ftp客户端 主动模式 被动模 PORT PASV

调用示例如下:

 OpenFTP.FTP f = new OpenFTP.FTP();
 f.Connect("127.0.0.1", "username_here", "password_here");
 f.ChangeDirectory("somedirectory");
 
 f.Files.Upload(Path.GetFileName(sFileName), Path.GetFileName(sFileName));
 
 while (!f.Files.UploadComplete)
 {
 	Console.WriteLine("Uploading: TotalBytes: "   f.Files.TotalBytes.ToString()   ", : PercentComplete: "   f.Files.PercentComplete.ToString());
 }
 
 Console.WriteLine("Upload Complete: TotalBytes: "   f.Files.TotalBytes.ToString()   ", : PercentComplete: "   f.Files.PercentComplete.ToString());
 
 f.Disconnect();
 f = null;