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; }
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; }
public WwwDownloader(string[] hosts, int maxProcessingCount, string outputPath, DownloadDoneFunc func, StartCoroutineFunc coroutine) : base(hosts, maxProcessingCount, outputPath, func , coroutine) { }
public HttpDownloader(string[] hosts, int maxProcessing, string outputPath, DownloadDoneFunc downloadDone, StartCoroutineFunc coroutine) : base(hosts, maxProcessing, outputPath, downloadDone, coroutine) { buffer = new byte[BUFFER_SIZE]; }