Re: NSInputStream created from NSData - expected it to close at end of data, did not happen
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