Skip navigation.
 
mlRe: Archive a NSFileHandle into NSData object
FROM : glenn andreas
DATE : Tue Jul 18 17:27:53 2006

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_removed>
  <http://www.gandreas.com/> wicked fun!
quadrium2 | build, mutate, evolve, animate  | images, textures, 
fractals, art

Related mailsAuthorDate
mlArchive a NSFileHandle into NSData object Jordan Evans Jul 18, 17:00
mlRe: Archive a NSFileHandle into NSData object glenn andreas Jul 18, 17:27