RE: Broadcatching

"Bauer, Georg" <[email protected]> Thu, 18 Mar 2004 11:41:57 +0100
Newsgroups gmane.comp.python.pyds.user
Message-ID <[email protected]>
Hi!

> code into those classes. The only thing that's needed is 
> either a python
> implementation of a BitTorrent client, or some commandline 
> tool that you can
> call via popen2. Only problem is, it must be portable over 

Ok, one more note on this: as BitTorrent URLs are actually http: urls, you
need to overload the open_http method in the UrlOpener so that it looks
wether the URL is a BitTorrent file and if yes, passes that one over to the
BitTorrent client. The way the Radio tool does it is that it just uses the
installed BitTorrent client and passes the BitTorrent file over to that one.
This should be easily doable with Python, too. At least under Windows (with
OLE Automation) and Mac OS X (with AppleEvents). We would need some way to
do this with Linux and *BSD, too. Put the actual handling for BitTorrent
downloads (the passing of the URL to the running client) into a module
BitTorrentWindows.py, BitTorrentOSX.py and BitTorrentPosix.py and build a
Module BitTorrent.py that uses the right version to do the actual work.
Hooking that into the DownstreamTool UrlOpeners won't be a big deal.

bye, Georg