Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   File sharing (http://www.velocityreviews.com/forums/t318978-file-sharing.html)

Alex 06-29-2003 08:37 AM

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 06-29-2003 10:31 AM

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


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).

> or is wrong my idea??


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?

--Irmen de Jong


Dave Kuhlman 06-29-2003 09:47 PM

Re: File sharing
 
Irmen de Jong wrote:

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

>
> 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).
>
>> or is wrong my idea??

>
> 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?


Also, you might be interested in Pyro:

http://pyro.sourceforge.net/

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
http://www.rexx.com/~dkuhlman
dkuhlman@rexx.com

Irmen de Jong 06-29-2003 11:10 PM

Re: File sharing
 
Dave Kuhlman wrote:

> Also, you might be interested in Pyro:
>
> http://pyro.sourceforge.net/


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



All times are GMT. The time now is 01:10 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57