NSFileHandle and Sockets
NSFileHandle and Sockets
- Subject: NSFileHandle and Sockets
- From: RR <email@hidden>
- Date: Sun, 3 Feb 2002 19:56:06 -0500
The docs for NSFileHandle initWithFileDescriptor: state that "You can
create an NSFileHandle for a socket by using the result of a socket call
as the argument to initWithFileDescriptor."
I'm trying to use NSFileHandle to communicate with a process on a
physically separate machine, so I had to use socket() of course, but I
also had to use connect() before passing on the socket to
initWithFileDescriptor. Everything seems to work all right, but the
documentation never explicitly mentions calling connect(). Just want to
make sure I'm not setting myself up for trouble at some later time!
Thanks,
RR