Exemplo n.º 1
0
 internal RAStream(Baidu1 baidu1, Entry entry)
 {
     _baidu1 = baidu1;
     _entry  = entry;
     for (int i = 0; i < 10; i++)
     {
         Start();
     }
 }
Exemplo 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);
     }
 }
Exemplo n.º 3
0
 public DownloadOneFileManager(Baidu1 baidu1, int threadCount)
 {
     _baidu1    = baidu1;
     _maxThread = threadCount;
 }
Exemplo n.º 4
0
 public DowbloadFileManager(Baidu1 baidu1, int threadCount)
 {
     _baidu1 = baidu1; _threadCount = threadCount;
 }