nsstream

NSStream Released while reading in, "EXC_BAD_ACCESS" iPhone SDK

I have a view controller that is an NSStreamDelegate, I have a problem when the view is popped from the navigation controller while something is being streamed I get a "EXC_BAD_ACCESS" error. I have tried closing the stream, but it doesn't seem to stop it if there is a stream in progress. What is the proper way to handle this, can you de...

help needed on writing NSData to output stream using NSStream in objective c

Hi, i using the following code which writes the file from a path to an output stream but every time i run the code, it always write 131768 bytes to the stream regards of my file size(8MB or 5MB or etc). Can someone please check for me? i can't seems to find the problem. Or it there other ways to do it? I'm using NSStream with the follow...

Bonjour NSStreamEventHasBytesAvailable event speed (enabled WiFi and Bluetooth both)

I'm develpoing a network app using Bonjour service on iPhone devices. My problem is that NSStreamEventHasBytesAvailable event speed is slow when i enable WiFi and Bluetooth both on my devices. But strangely if i enable only one either WiFi or Bluetooth, NSStreamEventHasBytesAvailable event speed is fast normally. Is it originally slow...