• 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
Connecting streams together
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Connecting streams together


  • Subject: Connecting streams together
  • From: vance <email@hidden>
  • Date: Thu, 24 Apr 2008 17:15:34 -0700

Hi,

Is there a way to connect an NSOutputStream and NSInputStream together with in-memory buffer?

So while the Input Stream is getting filled, the Output stream starts pulling the data out.

The context of the problem is streaming. The generator creates the sounds samples, and puts them to an NSInputStream instance. Then the server needs to empty that stream out and send them over the wire.

I tried to connect the two (NSInputStream and NSOutputStream) using a shared NSMutableData instance passed to both using initWithData and initToBuffer but it does not work.

Is anyone familiar on how to connect stream instances together so that the data can just flow through them?

Thank you
Vance
_______________________________________________

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: Connecting streams together
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Importing print-ready PDFs into NSViews and saving as PDF changes colors
  • Next by Date: Re: QTMovie grabing while playback
  • Previous by thread: Importing print-ready PDFs into NSViews and saving as PDF changes colors
  • Next by thread: Re: Connecting streams together
  • Index(es):
    • Date
    • Thread