cometta
cometta

Reputation: 35679

Adobe Air - BitTorrent?

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.

Upvotes: 3

Views: 1557

Answers (4)

LittleBuddha
LittleBuddha

Reputation: 1

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

Upvotes: 0

Alex
Alex

Reputation: 165

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

Upvotes: 6

back2dos
back2dos

Reputation: 15623

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

Upvotes: 2

fenomas
fenomas

Reputation: 11139

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.

Upvotes: 1

Related Questions