Questions tagged [cfreadstream]
28 questions
0
votes
1 answer
i386 symbols not found
Am getting this error, when using CFReadStreamRef
Undefined symbols for architecture i386:
"_CFReadStreamCreateWithFTPURL", referenced from:
-[FtpTestViewController clickMeToStart:] in FtpTestViewController.o
ld: symbol(s) not found for…

shriramR
- 1
- 1
0
votes
0 answers
Get the content length without storing the data locally
I have a stream of data and want to hit a certain endpoint I don't want to store the data locally to find the content length as I need to pass the content length as the headers property. So what are possible ways to get the content…

Akshay Vashishtha
- 68
- 7
0
votes
1 answer
I want to stream a video using node js from an on prem video library, not a file system
The exact requirement is like i have an on prem server or api which hosted video. I want to make a request to get that video and stream using node js to my html video tag placed in ui. The video can get through a url. The code i have seen is like…

Jithin Joseph
- 11
- 1
0
votes
1 answer
CFReadStreamOpen Returns Error kCFStreamErrorDomainPOSIXDomain
I want to make a MD5 of an Image so I am doing this with below code
CFStringRef FileMD5HashCreateWithPath(CFStringRef filePath, size_t chunkSizeForReadingData, BOOL *isAbort)
{
// Declare needed variables
CFStringRef result = NULL;
…

Vikram Sinha
- 581
- 1
- 10
- 25
0
votes
1 answer
Twitter Streaming API - Objective-C
I am working with the Twitter REST/Streaming APIs. When I want to access the REST API, I create a NSMutableURLRequest (that contains parameters such as access tokens and queries). I then use the request in conjunction with NSURLSession to load the…

Supertecnoboff
- 6,406
- 11
- 57
- 98
0
votes
1 answer
StreamDelegate stops to receive events after a amount of readings in swift
I have an iOS chat application that receives messages over a socket connection.
When user open the app after a long time and there are more than 50 unread messages, the server send over socket a message telling the number of unread messages, at this…

Charles Lima
- 381
- 4
- 9
0
votes
1 answer
Handling errors in CFReadStream - Obj-C
How do I handle errors in a stream? If the user is connected to the wrong network I want to handle that. Thanks!
Code:
- (void)initNetworkCommunication {
CFReadStreamRef readStream;
CFWriteStreamRef…

Yomo
- 175
- 2
- 15
0
votes
1 answer
Sending value of an array to client alongside javascript file via readStream?
I have a node.js server pulling data using node-mysql and saving it into an array called FRUITS.
I need to transfer the value of this array (FRUITS) with the javascript file that i send to the client using 'readStream'..
Any ideas on how to do this?…

PickMeUpLittle
- 37
- 1
- 8
0
votes
1 answer
Unable to write using CFWriteStream
I have created a UDP CFSocket and I'm able to send data without using any file handles. But, when I create CFReadStreamRef, CFWriteStreamRef and use them to send data, it fails. The control does not return. Can anyone help me regarding this? The…

vinay hegde
- 99
- 10
0
votes
1 answer
NSOutputStream's hasSpaceAvailable method always returns False
In my app, I need to use polling instead of run loop while performing certain operations over the network.
My code looks like below
-(id) init
{
self = [super init];
if (self) {
CFReadStreamRef readStream;
CFWriteStreamRef…

vinay hegde
- 99
- 10
0
votes
1 answer
How do I enable more handshake ciphers in CFStream?
When running the method:
CFReadStreamSetProperty(theReadStream, kCFStreamPropertySSLSettings (CFDictionaryRef)tlsPacket->tlsSettings);
To secure the connection of a CFReadStream, my iphone client returns the error:
Error…

Holtorf
- 1,451
- 4
- 21
- 41
-1
votes
1 answer
iPhone data transfer using CFReadStream & CFWriteStream (bonjour)
I am able to send data upto 20 KB from one Mac to another using iPhone Simulators successfully.However for data larger than that it is not able to send.Even fragmenting data doesnot work. Help...

user569721
- 1
- 1
- 1
-2
votes
1 answer
How to extract only the 1st 2 bytes of data from CFReadStream in Objective-C for iPhone programming
How can I read the data from read stream in Objective-C? The code below would give me how many bytes are read from stream, but how can I know what data is read from stream?
CFIndex cf = CFReadStreameRead(Stream, buffer, length);
How can I extract…

suse
- 10,503
- 23
- 79
- 113