nsstream Questions
3
I have been working on a NSStreamDelegate, I have implemented call back, I have initialized the input and output stream ilke this...
CFReadStreamRef readStream;
CFWriteStreamRef writeStream;
CF...
Traditionalism asked 26/9, 2012 at 5:19
1
Solved
I have an application that connects to a server using NSStream on another thread. The application also closes the connection should the user decide to log out. The problem is that I am never able t...
Firm asked 11/6, 2012 at 13:18
2
I've not found any decent documentation that explains the threading process for NSStream. To be specific, let's go for NSInputStream. Threading in Objective-C to me is currently a mystery simply be...
Enstatite asked 28/7, 2012 at 8:22
18
Solved
What is the appropriate way of dealing with large text files in Objective-C? Let's say I need to read each line separately and want to treat each line as an NSString. What is the most efficient way...
Juback asked 25/6, 2009 at 14:41
2
Solved
All,
I have a server that has a tcp socket stream for communication. I need to get to that stream and read the initial data that it needs to send me.
My current code is as follows. To be honest,...
Chamberlain asked 13/7, 2011 at 21:17
4
I have this consumer class that takes an NSInputStream as argument which will be processed async, and I want to push data that comes from a producer class that requires that it has an NSOutputStrea...
3
Solved
My app uses NSInputStream like below:
inputStream.delegate = self;
[inputStream scheduleInRunLoop:[NSRunLoop currentRunLoop] forMode:NSDefaultRunLoopMode];
[readStream open];
and delegate:
- (...
Myall asked 7/11, 2015 at 21:12
2
I have NSInputStream and NSOutputStream from this code
var readStream: Unmanaged<CFReadStream>?
var writeStream: Unmanaged<CFWriteStream>?
CFStreamCreatePairWithSocket(kCFAllocato...
Henrique asked 28/12, 2016 at 7:6
1
Solved
So I was playing around with sockets in Swift and trying to connect the app with my server. I was having the app connect to the IP address of the server and used netcat on the server for testing. D...
2
I have the following situation where I create a GCD dispatch queue and in it I schedule an NSStream to the current NSRunLoop, as is required in its specification for it to emit delegate events, and...
Montpelier asked 9/7, 2015 at 1:30
2
I have 2 libraries that I want to integrate and make them talk to each other. Each of them listen on their own input and output streams.
Library 1 will be the transport layer for library 2.
Case ...
Forgave asked 30/1, 2015 at 19:3
1
I would like to add three "parts" to an NSInputStream: an NSString, an output from another stream and then another NSString. The idea is the following:
The first and last NSStrings represent the b...
Gypsy asked 5/3, 2013 at 23:28
2
I have written this code to setup a stream with a server:
-(void)streamOpenWithIp:(NSString *)ip withPortNumber:(int)portNumber;
{
CFReadStreamRef readStream;
CFWriteStreamRef writeStream;
CFSt...
Inboard asked 3/4, 2013 at 11:20
2
Solved
I try to send and receive data with NSOutputStream and NSInputStream in Swift. The sending of data is working well, but i have some questions about the receiving.
I found a solution with handling ...
Principate asked 14/10, 2014 at 12:36
1
Solved
I have an issue with the development of a tcp server/client in objective c with Bonjour.
On the server side I open correctly the streams and I use the handleEvent function to send and receive data...
Nuke asked 13/11, 2015 at 13:40
1
Solved
Hi everyone as the title mention I'm trying to send and receive data from my Redis server in swift language. I have done a lot of research and I can't come across a good answer about this topic, cl...
0
I have a problem with obtaining a connected service name on the other device. I am using NSNetServices based on Bonjour and input and output streams for peer to peer connections. I have an iPhone a...
Iorio asked 9/3, 2015 at 11:27
1
Solved
TL;DR : What's the way to check if my remote stream are opened correctly after a call to NSStream.getStreamsToHostWithName(...)?
My application is a mobile IOS8 swift application.
I am using N...
1
History:
I am working on a project for which we need to support:
Background Upload of files using NSURLSession.
The server expects file to be uploaded using Content-Type: multipart/form-data
P...
Breban asked 4/2, 2015 at 15:31
2
Solved
I had my code working in another project, in a class with the following signature:
class ViewController: UIViewController, NSStreamDelegate, UITextFieldDelegate {
Then I moved the connection to ...
1
Solved
I want to send microphone audio data over Multipeer Connectivity (iOS 8) and play it through the speaker of the receiving peer. I've also setup the AVAudioEngine and I can hear the microphone data ...
Recycle asked 9/10, 2014 at 4:2
1
Solved
Could you please explain me how do I read properly from an NSInputStream?
I couldn't understand what is UnsafePointer and what's the use of it (also for UnsafeArray).
The NSInputStream read...
Arnettearney asked 19/7, 2014 at 12:16
1
Solved
I am trying to create a simple multiplayer turn-based game between iPhones. Right now all I want to do is pass in some string to my method, and have the method send the string through the NSOutputS...
Quacksalver asked 20/4, 2014 at 18:31
1
The input and output streams get opened all the time and the respective delegate methods get called with the correct NSStreamEvent code (NSStreamEventOpenCompleted). However, on some openSession at...
Gotthard asked 4/3, 2014 at 17:33
1 Next >
© 2022 - 2024 — McMap. All rights reserved.