using System;using System.Collections.Generic;using System.Net;using System.IO;namespace FTP操作{/// /// FTP操作类/// public class FtpClient{#region 构造函数/// /// 创建FTP工具/// /// 默认不使用SSL,使用二进制传输方式,使用被动模式/// /// /// 主机名称/// 用户名/// 密码public FtpClient(string host, string userId, string password): this(host, userId, password, 21, null, false, true, true){}/// /// 创建FTP工具/// /// 主机名称/// 用户名/// 密码/// 端口/// 允许Ssl/// 代理/// 允许二进制/// 允许被动模式public FtpClient(string host, string userId, string password, int port, IWebProxy proxy, bool enableSsl, bool useBinary, bool usePassive){this.userId = userId;this.password = password;if (host.ToLower().StartsWith("ftp://")){this.host = host;}else{this.host = "ftp://" + host;}this.port = port;this.proxy = proxy;this.enableSsl = enableSsl;this.useBinary = useBinary;this.usePassive = usePassive;}#endregion#region 主机private string host = string.Empty;/// /// 主机/// public string Host{g
unity 模型影子不出来_unity3d 阴影在制作过程中的注意事项
最新推荐文章于 2022-11-15 16:11:45 发布