Exemplo n.º 1
0
 protected DownloaderBase(string[] hosts, int maxProcessing, string outputPath, DownloadDoneFunc downloadDone, StartCoroutineFunc coroutine)
 {
     this.hosts         = hosts;
     this.maxProcessing = maxProcessing;
     this.outputPath    = outputPath;
     this.downloadDone  = downloadDone;
     this.coroutine     = coroutine;
 }
Exemplo n.º 2
0
 public Downloader(string[] hosts, int thread, string outputPath, DownloadDoneFunc downloadDone)
 {
     this.hosts      = hosts;
     this.thread     = thread;
     this.outputPath = outputPath;
     DownloadDone    = downloadDone;
     webclient       = new WebClient();
     webclient.DownloadFileCompleted += OnDownloadFileCompleted;
 }
Exemplo n.º 3
0
 public WwwDownloader(string[] hosts, int maxProcessingCount, string outputPath, DownloadDoneFunc func, StartCoroutineFunc coroutine) : base(hosts, maxProcessingCount, outputPath, func
                                                                                                                                             , coroutine)
 {
 }
Exemplo n.º 4
0
 public HttpDownloader(string[] hosts, int maxProcessing, string outputPath, DownloadDoneFunc downloadDone, StartCoroutineFunc coroutine) : base(hosts, maxProcessing, outputPath, downloadDone, coroutine)
 {
     buffer = new byte[BUFFER_SIZE];
 }