File sharing

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Alex

    File sharing

    Hi all,

    I want to write a "File sharing system".

    Is posssible with socket and thread create multisuer connection at the same
    time ?

    or is wrong my idea??

    thanks
    Alex


  • Irmen de Jong

    #2
    Re: File sharing

    Alex wrote:[color=blue]
    > Hi all,
    >
    > I want to write a "File sharing system".
    >
    > Is posssible with socket and thread create multisuer connection at the same
    > time ?[/color]

    Yes. You can use multiple sockets and a thread per connection,
    or you can use one of Python's event driven frameworks to handle
    lots of concurrent connections (Twisted, for instance).
    [color=blue]
    > or is wrong my idea??[/color]

    I don't know, but have a look at BitTorrent.
    That is an existing popular file sharing system written in Python.

    Engineering, math, and lots of random stuff. Click to read Bram’s Thoughts, by Bram Cohen, a Substack publication with thousands of subscribers.


    No need reinventing the wheel, right?

    --Irmen de Jong

    Comment

    • Dave Kuhlman

      #3
      Re: File sharing

      Irmen de Jong wrote:
      [color=blue]
      > Alex wrote:[color=green]
      >> Hi all,
      >>
      >> I want to write a "File sharing system".
      >>
      >> Is posssible with socket and thread create multisuer connection
      >> at the same time ?[/color]
      >
      > Yes. You can use multiple sockets and a thread per connection,
      > or you can use one of Python's event driven frameworks to handle
      > lots of concurrent connections (Twisted, for instance).
      >[color=green]
      >> or is wrong my idea??[/color]
      >
      > I don't know, but have a look at BitTorrent.
      > That is an existing popular file sharing system written in Python.
      >
      > http://bitconjurer.org/BitTorrent/
      >
      > No need reinventing the wheel, right?[/color]

      Also, you might be interested in Pyro:



      Pyro claims to support remote objects. Perhaps you could
      represent files with remote objects.

      OK. I admit. It's a stretch. But, if you want to simulate file
      sharing across the *Net* ...

      - Dave

      --
      Dave Kuhlman

      dkuhlman@rexx.c om

      Comment

      • Irmen de Jong

        #4
        Re: File sharing

        Dave Kuhlman wrote:
        [color=blue]
        > Also, you might be interested in Pyro:
        >
        > http://pyro.sourceforge.net/[/color]

        LOL, that should have been my comment ;-)

        I know of a few Pyro projects that actually *do* use Pyro
        to transfer files across the network. One of them is rather
        interesting, the files are digital images produced by an
        earth-orbiting sattelite.. :-)

        --Irmen

        Comment

        Working...