I have NSInputStream , i want to check if i am getting data from other end , i read the NSStreamStatus , i cam across that "NSStreamStatusReading" is use to check the read data .
I tried to check that status but its not working can any one tell me how to check if i am getting data or not .. code:
if([inputStream streamStatus]==NSStreamStatusReading)
{
NSlog(@"server is sending");
}
else
{
NSlog(@"no");
}
its working when its sending but when i stop server , its not updating .