• 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: NSInputStream created from NSData - expected it to close at end of data, did not happen
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSInputStream created from NSData - expected it to close at end of data, did not happen


  • Subject: Re: NSInputStream created from NSData - expected it to close at end of data, did not happen
  • From: Jens Alfke <email@hidden>
  • Date: Fri, 10 Jun 2011 17:13:46 -0700

On Jun 10, 2011, at 4:55 PM, email@hidden wrote:

> Thank you for your patience, but I think I understand the difference. The thing is that I wanted to make a TCPServer that sends a piece of NSData to any client that connects. Thus my plan was to create an NSInputStream via [NSInputStream inputStreamWithData:].

That seems convoluted. Why not just use the input stream from the socket?

[Suggestion: You might want to take this to the macnetworkprog mailing list, as it’s more on-topic there and there will be more networking gurus to help out.]

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: NSInputStream created from NSData - expected it to close at end of data, did not happen
      • From: email@hidden
References: 
 >NSInputStream created from NSData - expected it to close at end of data, did not happen (From: email@hidden)
 >Re: NSInputStream created from NSData - expected it to close at end of data, did not happen (From: Jens Alfke <email@hidden>)
 >Re: NSInputStream created from NSData - expected it to close at end of data, did not happen (From: email@hidden)
 >Re: NSInputStream created from NSData - expected it to close at end of data, did not happen (From: Jens Alfke <email@hidden>)
 >Re: NSInputStream created from NSData - expected it to close at end of data, did not happen (From: email@hidden)

  • Prev by Date: Re: NSInputStream created from NSData - expected it to close at end of data, did not happen
  • Next by Date: Re: NSInputStream created from NSData - expected it to close at end of data, did not happen
  • Previous by thread: Re: NSInputStream created from NSData - expected it to close at end of data, did not happen
  • Next by thread: Re: NSInputStream created from NSData - expected it to close at end of data, did not happen
  • Index(es):
    • Date
    • Thread