Search code examples
flashactionscript-3airbittorrent

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.


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