• 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
NSInputStream Returning -1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSInputStream Returning -1


  • Subject: NSInputStream Returning -1
  • From: "Christopher Bland" <email@hidden>
  • Date: Sun, 11 Jun 2006 17:40:03 GMT

I've been having trouble getting my Cocoa HTTP server responding to HTTP requests (specifically from C app on Windows using libcurl). I am simply using the Cocoa SOAP server from the Apple developer example site.

Running the server through the debugger indicates that:
/System/Library/Frameworks/System.framework/PrivateHeaders/i386/cpu_capabilities.h
No such file or directory.

The file does not exist, but that didn't really tell me much. So I began stepping through the code and narrowed it down to the fact that my NSInputStream 'read' call is returning -1 when sending responses back to my Windows app and returns 0 when responding to my Mac client.

The reference info on Apple's site:
http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSInputStream_Class/Reference/Reference.html#//apple_ref/occ/instm/NSInputStream/getBuffer:length:
does not indicate what a negative return value from 'read' means. It is obviously bad, I'm trying to figure out what could be causing it to go bad.

Any thoughts? Thanks for the input.


________________________________________________________________________
Try Juno Platinum for Free! Then, only $9.95/month!
Unlimited Internet Access with 1GB of Email Storage.
Visit http://www.juno.com/value to sign up today!


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Runtime Programmatic Entity Switching in CoreData
  • Next by Date: RE: Embedding a database
  • Previous by thread: Re: Runtime Programmatic Entity Switching in CoreData
  • Next by thread: How to set the configuration of an NSPersistentDocument?
  • Index(es):
    • Date
    • Thread