NSFileHandle socket question
NSFileHandle socket question
- Subject: NSFileHandle socket question
- From: Doug Brown <email@hidden>
- Date: Sun, 23 Dec 2001 17:31:14 -0800
Hi,
I have been working on creating a socket for an app that I'm working on,
and NSFileHandle seems to be the perfect way to handle sending and
receiving data - it's working just great with
-readInBackgroundAndNotify. I am baffled at one thing, though. How do I
find out if the remote side closed the connection? I don't see any
method or notification that would tell me when the connection is closed.
I need to know this so I can tell the user that the connection was
dropped and reset everything so the app knows it is disconnected from
the server again. Thanks,
Doug