• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Archive a NSFileHandle into NSData object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Archive a NSFileHandle into NSData object


  • Subject: Re: Archive a NSFileHandle into NSData object
  • From: glenn andreas <email@hidden>
  • Date: Tue, 18 Jul 2006 10:27:53 -0500


On Jul 18, 2006, at 10:00 AM, Jordan Evans wrote:

How do I write a NSFileHandle pointer into a NSData object?

What I am trying to do is put a NSFileHandle pointer in a NSData
object, then send the NSData object to another computer over a
network.  The receiving computer must take the pointer out of the
NSData and use it as a NSFileHandle to a socket.

You can't do this - there is no built in way to allow access to a file on one computer to be passed to another computer (you can pass file descriptors between processes on the same machine, but not to different computers, though this requires a pipe to be established between the two processes).


If you need a remote machine to be able to access local files, you'll need to use some sort of server architecture (where the remote machine is a client that connects to your server which feeds up the files).

Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
quadrium2 | build, mutate, evolve, animate | images, textures, fractals, art



_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Archive a NSFileHandle into NSData object (From: "Jordan Evans" <email@hidden>)

  • Prev by Date: Archive a NSFileHandle into NSData object
  • Next by Date: Re: cross development problem
  • Previous by thread: Archive a NSFileHandle into NSData object
  • Next by thread: Updating webview with HTML attribute of a managed object
  • Index(es):
    • Date
    • Thread