Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Download multiple files

Download multiple files

Scheduled Pinned Locked Moved C#
csharpquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cdpsource
    wrote on last edited by
    #1

    Hi, How can I download multiple files in same time with my C# applicaion, like is utoorent applicaion. I have list of docx files and i want to download all of them in same time. Thanks

    B L 2 Replies Last reply
    0
    • C cdpsource

      Hi, How can I download multiple files in same time with my C# applicaion, like is utoorent applicaion. I have list of docx files and i want to download all of them in same time. Thanks

      B Offline
      B Offline
      Bernhard Hiller
      wrote on last edited by
      #2

      By downloading each file in a different thread.

      1 Reply Last reply
      0
      • C cdpsource

        Hi, How can I download multiple files in same time with my C# applicaion, like is utoorent applicaion. I have list of docx files and i want to download all of them in same time. Thanks

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Where from?

        cdpsource wrote:

        like is utoorent applicaion

        So are they torrents? Or are they on a HTTP server? Or something else entirely? Anyway, consider using asynchronous methods instead of explicit threads. Or, if you want to be fancy, use one thread and Socket.Select[^]. You probably only have one network interface, and then using more than one thread to read from multiple sockets just means they end up taking turns anyway - a waste of resources, unless they do some significant processing with it (starting an asynchronous file-write wouldn't be significant).

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups