title: iPhone SDK: phone to phone file transfer
body: <p>What is the simpliest approach to copy files from iPhone to iPhone (p2p). </p>
  
  <p>The only way I can come up is this:</p>
  
  <ul>
  <li><p>Use Bonjour to discover server app   (which will advertize itself via
  Bonjour)</p></li>
  <li><p>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)</p></li>
  </ul>
  
  <p>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 <a href="http://msdn.microsoft.com/en-us/library/ms740565(VS.85).aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/ms740565(VS.85).aspx</a>)?</p>
  
  <p>I guess I can also use GameKit and stream data over establish session, but it seems that Baonjour provides more flexibility.</p>
  
  <p>thanks</p>