468,133 Members | 1,138 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,133 developers. It's quick & easy.

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
Jul 18 '05 #1
3 2427
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

Jul 18 '05 #2
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
dk******@rexx.com
Jul 18 '05 #3
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

Jul 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Dave Y | last post: by
4 posts views Thread by Tony Liu | last post: by
5 posts views Thread by Jeff | last post: by
reply views Thread by daniele.balducci | last post: by
15 posts views Thread by Brian Simmons | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.