When I was presenting on Real Time Web at Adobe Flash Platform Summit in Bangalore, many people asked me whether it is possible to create P2P File Sharing (note its sharing, not transfer) in Flash Player 10.1, backed by Stratus. The answer is definitely yes. Riding on the peer-assisted networking of Adobe Stratus, it means that user can now share huge files to its connected peers, while individual peers can request and pass chunks of file to one another, just like what BitTorrent is doing.
The good thing here is that developers do not need to handle the complexity of handling their peers, transfering of data , joining of mesh themselves as all these are done by Flash Player 10.1 and Adobe Stratus 2.0 Object replication feature.
To demonstrate the P2p File Sharing capabilities , I have started an open source project that allows P2P File Sharing named Tarts (reverse the word ‘Stratus’ to see how I get the name
To Play with Tarts , download the initial build at : http://tarts.googlecode.com/files/tarts.air
To facilitate testing, you can run 2 instance by installing the TartsReceiver, which is essentially the same file, but build with a different application id : http://tarts.googlecode.com/files/tarts_rcv.air
Video Instruction:
1. Select a File you want to share, anything from 1mb to big files like 5 gig
2. Generate a .tart file, this is the same as a .torrent file. The .tart file will holds the description of the file that is being share.
3. Any client that want to download a file can now open a .tart file. It will automatically join the NetGroup, and begin to request for the files. The more peers is currently sharing the file, the faster the file transfer will be .
Note! You will need 2 instance of Tart if you want to send and receive a file yourself. You will not be able to send and request the SAME file under 1 client.
Source: The source for the entire project is available on Google Code:
http://code.google.com/p/tarts/
To contribute to the project, please drop me an email (shinchi-at-gmail). I hope to keep this simple project as a proof of concept for P2p File Sharing using Stratus, but we all know Flash Developers loves to push limits. So if you modify the code , feel free to commit it back to the trunk.

















