• 大小: 0.06M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-03-27
  • 语言: C#
  • 标签: c#  

资源简介


做了个实验,课本里的是多线程,自己改造成了断点续传,没什么技术含量,希望能给想了解这方面知识的一个参考,默认途径是f盘的一个位置,没有这个目录的自己创建或者自己在代码里面更改目录

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Net;
using System.IO;
using System.Threading;
using System.Diagnostics;

namespace download
{
    public partial class Form1 : Form
    {
        public const int threadNumber = 3;
        public HttpDownload[] d;
        public Form1()
        {
            InitializeComponent();

            textBox1.Text = “http://localhost:6054/download/test.mp4“;
            textBox2.Text = “勇敢.mp4“;
        }

        private void listBox1_SelectedIndexChanged(object sender EventArgs e)
        {

        }

        private void label3_Click(object sender EventArgs e)
        {

        }

        private void Form1_Load(object sender EventArgs e)
        {

        }

        private void button1_Click(object sender EventArgs e)
        {
            if (

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      17920  2014-11-27 16:48  download\download\bin\Debug\download.exe

     文件      38400  2014-11-27 16:48  download\download\bin\Debug\download.pdb

     文件      11600  2014-11-27 16:56  download\download\bin\Debug\download.vshost.exe

     文件        490  2010-03-17 22:39  download\download\bin\Debug\download.vshost.exe.manifest

     文件       3675  2014-11-25 00:23  download\download\download.csproj

     文件      16211  2014-11-27 16:48  download\download\Form1.cs

     文件       7417  2014-11-27 16:47  download\download\Form1.Designer.cs

     文件       6025  2014-11-27 16:47  download\download\Form1.resx

     文件       4501  2014-11-25 13:31  download\download\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       6402  2014-11-27 16:48  download\download\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件       1009  2014-11-27 16:56  download\download\obj\x86\Debug\download.csproj.FileListAbsolute.txt

     文件      17920  2014-11-27 16:48  download\download\obj\x86\Debug\download.exe

     文件        180  2014-11-27 16:48  download\download\obj\x86\Debug\download.Form1.resources

     文件      38400  2014-11-27 16:48  download\download\obj\x86\Debug\download.pdb

     文件        180  2014-11-25 14:48  download\download\obj\x86\Debug\download.Properties.Resources.resources

     文件        384  2014-11-27 16:48  download\download\obj\x86\Debug\GenerateResource.read.1.tlog

     文件        870  2014-11-27 16:48  download\download\obj\x86\Debug\GenerateResource.write.1.tlog

     文件       8031  2014-11-25 14:48  download\download\obj\x86\Debug\ResolveAssemblyReference.cache

     文件        489  2014-11-25 00:11  download\download\Program.cs

     文件       1366  2014-11-25 00:11  download\download\Properties\AssemblyInfo.cs

     文件       2867  2014-11-25 00:11  download\download\Properties\Resources.Designer.cs

     文件       5612  2014-11-25 00:11  download\download\Properties\Resources.resx

     文件       1094  2014-11-25 00:11  download\download\Properties\Settings.Designer.cs

     文件        249  2014-11-25 00:11  download\download\Properties\Settings.settings

     文件        866  2014-11-25 00:11  download\download.sln

    ..A..H.     22016  2014-11-27 17:00  download\download.suo

     目录          0  2014-11-25 00:11  download\download\obj\x86\Debug\TempPE

     目录          0  2014-11-27 16:48  download\download\obj\x86\Debug

     目录          0  2014-12-01 15:20  download\download\bin\Debug

     目录          0  2014-11-25 00:11  download\download\obj\x86

............此处省略8个文件信息

评论

共有 条评论