nsfilehandle

What exactly is a communication channel?

When I look at the NSFileHandle API docs, I see there are a lot of networking methods talking about sockets and stuff like that... At the top, they say: NSFileHandle objects provide an object-oriented wrapper for accessing open files or communications channels. What's an "communication channel" here? Are there some practical e...

Does NSFileHandle create the sockets for me?

Does NSFileHandle create the sockets for me? Or must I create them myself and then setup an NSFileHandle to use that socket? ...

What's the difference between a "stream-type" socket and a "datagram" socket type?

What's the difference between a "stream-type" socket and a "datagram" socket type? ...

Must I close the File Handle when doing this?

Example: NSData *fileData = [fileHandle readDataToEndOfFile]; Am I responsible for closing that file handle? (I think I'm not...but just 99.95% sure!) ...