Can anyone please help setting a timeout for NSInputStream and NSOutputStream classes.
It seems that apple doesn't support this. The answer is to create a timer, or, using threads when applicable.