Question

Has anyone had any experience using Adobe Air to create BitTorrent application?

Is there presently any reference on this?

Please provide as much information as possible.

Was it helpful?

Solution

as far as I know, torrent uses µTP, which is based on UDP ... UDP is not accessible through the AIR API ... you may want to embed a small Java applet (within a HTMLLoader, which is off the display list) ... signed Java applets can bind ports and do UDP ... so you'd basically let the Java applet do the networking, and bind a TCP port, through which the AIR runtime can communicate with the applet ... there are probably many Java torrenting libs out there ...

it's a bit questionable, whether it makes sense to use AIR at all, and not just have a pure Java solution, but I guess that's up to you ...

OTHER TIPS

back2dos is incorrect... check out the DatagramSocket class in the ActionScript 3 reference

AIR can read/write arbitrary binary data over TCP sockets, so in theory an AIR app can implement any protocol you like. The main limitation, though, is that AIR cannot listen for incoming connections, it can only make outgoing requests.

I don't know anything about the BT protocol, but commenter Michael Madsen says that BT clients can still work with this limitation, the same way they typically function behind routers or firewalls. If that's the case, then I can't see any reason why one couldn't construct an AIR BitTorrent client, but I don't know of any work that's already been done in that direction.

that isn't a problem for windows u use uToerrent they have a API for a AIR Client...

For Mac and Linux can u use Transmission... For transmission here is the client

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top