• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSStream, NSInputStream, NSOutputStream
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSStream, NSInputStream, NSOutputStream
      • From: John MacMullin <email@hidden>
References: 
 >NSStream, NSInputStream, NSOutputStream (From: John MacMullin <email@hidden>)

  • Prev by Date: Re: NSStream, NSInputStream, NSOutputStream
  • Next by Date: Re: validateMenuItem() not always being called
  • Previous by thread: Re: NSStream, NSInputStream, NSOutputStream
  • Next by thread: Re: NSStream, NSInputStream, NSOutputStream
  • Index(es):
    • Date
    • Thread