Пример #1
0
 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;
 }
Пример #2
0
 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;
 }