Connecting streams together
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