Hi,
I'm developing small FTP upload app. for mac (10.6 if it matters)
Have problem with NSStream, actually I cannot understand how to find our error by its code.
NSError code=14 domain=NSPOSIXErrorDomain
Where to check what does 14 means?
Thank you.
Just in case here is my code (maybe you can also tell me why I have an error)
NSString * filePath;
NSInputStream * fStream;
NSStreamStatus * status;
NSError * error;
filePath = @"/Users/Vic/Desktop/ftptest.txt";
fStream = [NSInputStream inputStreamWithFileAtPath:filePath];
[fStream open];
uint8_t * buffer;
NSInteger bytesRead;
bytesRead = [fStream read:buffer maxLength:32768];
error = [fStream streamError];
NSLog(@"error code=%d domain=%@",error.code,error.domain);