What is the simpliest approach to copy files from iPhone to iPhone (p2p).
The only way I can come up is this:
Use Bonjour to discover server app (which will advertize itself via Bonjour)
Use NSStream (or sockets) and then stream data from the file from peer to peer (read chunk of the file, send chunk of the file and so on until entire file is read)
Is there a APIs/Method which would take care of all streaming data and just copy a file from place to place without doing low lever programming with streams or sockets (similar to http://msdn.microsoft.com/en-us/library/ms740565(VS.85).aspx)?
I guess I can also use GameKit and stream data over establish session, but it seems that Baonjour provides more flexibility.
thanks