Re: NSStream, NSInputStream, NSOutputStream
Re: NSStream, NSInputStream, NSOutputStream
- Subject: Re: NSStream, NSInputStream, NSOutputStream
- From: Ken Thomases <email@hidden>
- Date: Mon, 19 May 2008 20:32:08 -0500
On May 19, 2008, at 8:07 PM, John MacMullin wrote:
The error returned is: [ostream streamError]:
NSError "POSIX error: Broken pipe" Domain=NSPOSIXErrorDomain Code=32
I have looked at the stream error docs in NSStream and this error
is not even reference.
Any ideas on what this means and how I fix it would be greatly
appreciated.
One of the BSD/POSIX routines used by the NSOutputStream
implementation is returning EPIPE.
It's documented in the man pages for the BSD routine in question
(write, send, or similar), and also in one central list: http://
developer.apple.com/documentation/Darwin/Reference/ManPages/man2/
intro.2.html
It means that the would-be recipient of the data you're writing has
closed their end of the connection. So, you should look at the
implementation of the client to figure out why it's closing the
connection.
Cheers,
Ken
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden