public FTPConnect(FTPUrl ftpUrl) { this.m_ID = System.Guid.NewGuid().ToString(); this.m_DataSocketList = new List <Socket>(); this.m_Buffer = new Byte[BLOCK_SIZE]; this.FtpUrl = ftpUrl.Clone() as FTPUrl; }
public FTPConnect(FTPUrl ftpUrl, string ftpId) { if (String.IsNullOrEmpty(ftpId)) { ftpId = System.Guid.NewGuid().ToString(); } this.m_ID = ftpId; this.m_DataSocketList = new List <Socket>(); this.m_Buffer = new Byte[BLOCK_SIZE]; this.FtpUrl = ftpUrl.Clone() as FTPUrl; }
public object Clone() { FTPUrl url = new FTPUrl(); url.m_RemoteHostIP = this.m_RemoteHostIP; url.m_RemoteHost = this.m_RemoteHost; url.m_RemotePort = this.m_RemotePort; url.m_UserName = this.m_UserName; url.m_UserPwd = this.m_UserPwd; url.m_Path = "/"; return(url); }