File sharing

A

Alex

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
 
I

Irmen de Jong

Alex said:
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
 
D

Dave Kuhlman

Irmen said:
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).


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
 
I

Irmen de Jong

Dave said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,265
Messages
2,571,069
Members
48,771
Latest member
ElysaD

Latest Threads

Top