Esempio n. 1
0
 internal RAStream(Baidu1 baidu1, Entry entry)
 {
     _baidu1 = baidu1;
     _entry  = entry;
     for (int i = 0; i < 10; i++)
     {
         Start();
     }
 }
Esempio n. 2
0
 static public Stream GetStream(this Baidu1 b, Entry e)
 {
     lock (Cache)
     {
         RAStream ret = null;
         if (Cache.ContainsKey(e))
         {
             ret = Cache[e];
         }
         if (ret == null)
         {
             ret = new RAStream(b, e);
             Cache.Add(e, ret);
         }
         ret.SetAlive();
         return(ret);
     }
 }
Esempio n. 3
0
 public DownloadOneFileManager(Baidu1 baidu1, int threadCount)
 {
     _baidu1    = baidu1;
     _maxThread = threadCount;
 }
Esempio n. 4
0
 public DowbloadFileManager(Baidu1 baidu1, int threadCount)
 {
     _baidu1 = baidu1; _threadCount = threadCount;
 }