nsstream Questions

5

Solved

All, I've run it down to this point by commenting, breakpoints, etc. The program crashes at the marked code. -(void) initNetworkCommunication { CFReadStreamRef readStream; CFWriteStreamRef wri...
Bresee asked 13/7, 2011 at 22:26

1

Solved

I am making a chat application using NSStreams that connect to a simple c socket server. The stream connects successfully, and sends data, but it is unable to receive the data. Here is my Socket cl...
Brewage asked 12/10, 2013 at 1:28

1

Solved

I use NSInputstream & NSOutputstream to setup a connection and send data. My stream object has a function to open and close the stream. I use the following code: @interface Stream() { NSInput...
Inoculation asked 1/5, 2013 at 14:56

3

I downloaded WiTap Code From Apple's website. Its for transferring data over local wifi network. I am working in a project to interact as client - server architecture. I am sending NSData from clie...
Forbidden asked 5/4, 2013 at 9:4

2

I'm trying to send an image that user takes to the server. I get the JPEG representation, append that to the string needed to upload the photo, and then send the data through NSOutputStream. ...
Jezabel asked 20/3, 2013 at 14:52

1

I'm using CFStream/NSStream to make http connections. I want to be able to detect that a SSL handshake fails for three cases: case A: server is not trusted case B: server is trusted but asks a cl...
Ackack asked 23/11, 2012 at 18:16

2

Solved

I used ASIHTTPRequest in my project,but in the file ASIDataCompressor.m line 190: if ([inputStream streamStatus] == NSStreamEventErrorOccurred) { if (err) { *err = [NSError errorWithDomain:Netwo...
Silverplate asked 21/12, 2012 at 2:44

1

My case is quite strange: I practically used the example "SimpleFTPSample" (some small variation of the type [self.networkStream setProperty: (id) kCFBooleanFalse forKey: (NSString *) kCFStreamProp...
Gadgeteer asked 11/10, 2012 at 17:26

0

After making some changes to my app for iOS 6 (none of them actually pertaining to networking), I started encountering a strange error with my stream event handler. This is occurring on both iOS 5 ...
Grower asked 14/10, 2012 at 23:45

1

Solved

I am a newbie in Objective-C. I am trying to learn how to work with NSStream. I just used simple code from Apple Support. This code should open a stream from a file in my Desktop and show a simple ...
Quite asked 2/9, 2012 at 18:54

2

Solved

The basic problem I'm working on is using the NSStream classes to parse incoming incremental XML data. The data is never a complete XML Document, but I want to receive and process it in incremental...
Sarcasm asked 27/5, 2012 at 22:1

1

Solved

I was trying on a TCP connection app, and I am getting a NSStreamEvent "4" on handleEvent. What am I doing wrong? My code is like, -(void) initNetworkCommunication { CFReadStreamRef readStream;...
Mazer asked 29/5, 2012 at 8:9

1

Solved

I am using (and am required to use) a third-party framework to which I do not have source. The third-party framework handles creating an authenticated client/server connection and hands back a pair...
Quenelle asked 24/5, 2012 at 15:4

2

Solved

I've followed the guide Setting Up Socket Streams and have effectively duplicated that code in my class. No matter what I try the delegate methods just don't seem to get called. In the header file...
Shipmaster asked 8/2, 2011 at 8:31

1

Solved

I am writing an application that uses NSStream's SSL functions on the iphone. I know that SSL is working because I can directly connect servers using SSL. I have encountered a problem where protoco...
Psf asked 10/2, 2010 at 15:4

1

I'm building a socket , using CFStreamCreatePairWithSocketToHost(kCFAllocatorDefault, (CFStringRef) yourHostAsNSString, yourPortAsInteger, &myReadStream, &myWriteStream); and I see th...
Stephenstephenie asked 30/6, 2010 at 9:41

1

I have written a program that connects to a server on a given IP using the NSStream protocol outlined in Apple's stream programming guide. The connection and transfer of data works flawlessly, howe...
Reiners asked 10/9, 2010 at 18:15

1

Solved

I am using NSStream with SSL property for socket connection. It works fine when I use the local IP address such as 192.168.1.77. But if I use any server like www.xyz.com (it has SecurityLevelTLSv1)...
Cystine asked 9/11, 2009 at 12:54

© 2022 - 2024 — McMap. All rights reserved.