Re: Archive a NSFileHandle into NSData object
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