The NSOutputStream class is a subclass of NSStream that provides write-only stream functionality.
Questions tagged [nsoutputstream]
101 questions
0
votes
1 answer
NSOutputStream not calling delegate's NSStreamEventHasSpaceAvailable
I have implemented socket by using input and output streams. The external architecture takes care of sending one request at a time to write.
However if any request does not return no HasBytesAvailable I need to remove that request from queue and…

Sagrian
- 1,048
- 2
- 11
- 29
0
votes
1 answer
iOS: outputStream does not stay open
Okay so I'm implementing a NSOutput and Input Streams. When they are initialized, the streams open and connect to my TCPServer I have running on my PC, but then appear to close once outside of the initializing function or maybe the streams aren't…

justsomeguy
- 115
- 1
- 11
0
votes
1 answer
NSOutputStream of EASession stops sending data to EAAccessory
I have a project that connects to an external accessory and communicates a small amount of data to and from an iOS app. I am able to setup the session and streams like apple does in their EADemo reference code and everything seems to work fine.
The…

schwing
- 1
- 1
0
votes
1 answer
iOS: sending .jpg image as base64 to tcp server
This one is going to kill me. I'm so close to getting this done except for this one stupid problem. And I am not sure I will be able to adequately describe the problem, but I'll try.
My enterprise app uses the iPhone camera to take pictures of…

Bill Norman
- 883
- 11
- 29
0
votes
1 answer
How to write data to stream until all the data coming from server is written to NSOutputstream
How to write data to stream continuously and parse the stream until all the data coming from server is written to NSOutputstream
NSLog(@"Response %@",[[NSString alloc] initWithData:self.m_cWebData encoding:NSUTF8StringEncoding]);
…

user2031994
- 31
- 5
0
votes
1 answer
NSOutputStream is always waiting for space available after second NSOperation tries to write to it
I am creating an NSOutputStream and passing it to an NSOperation, which I call from an NSOperationQueue. In the operation, I am polling for hasSpaceAvailable so that I can write out to the socket. This works fine the first time I write out to the…

ayl
- 384
- 1
- 5
- 14
0
votes
0 answers
FTPS in iOS using NSOutputStream
I am Trying to upload a file on FTP, through SSL. My code works for normal connection but when used with SSL, it throws an error in the following method. The error is NSStreamEventErrorOccurred.
-(void) stream:(NSStream *)aStream…

NNikN
- 3,720
- 6
- 44
- 86
0
votes
1 answer
NSOutputStream: delete existing file if stream is incomplete?
I'm using NSUrlConnection and NSOutputStream to write the file. But when the file doesn't exist or there is an error while downloading I want to be able to remove the incomplete downloaded file.
Is there a operation for this? Because otherwise I get…

user1066006
- 135
- 3
- 14
0
votes
1 answer
Close NSStreams when app goes to background
I am new to objective C and ios development. I generally program Android apps with Java and always used the onPause call to close my sockets. However when I call my close socket method under applicationWillResignActive I loose communication with…

Travis Elliott
- 291
- 2
- 5
- 18
0
votes
1 answer
Multiple streams, 1 File?
I'd like write a file to disk using multiple NSOutputStreams (each one in a different thread). I know how to handle the threading issue, but I can't figure out what to use to write different byte-ranges to a single file at the same time.
For…

RyanM
- 5,680
- 9
- 45
- 55
-2
votes
1 answer
ios socket outputstream bytes
I find these code on the website,and rewrite it into my current code
,I can successfully connect to the server side.But I still had some problems:
outputStream:
According to the code on the website, I can normally send string
-…

Shane Jhan
- 5
- 7