Questions tagged [cfstream]
51 questions
0
votes
1 answer
NSStream closing and opening error
I'm working with NSStream to send and receive single characters over a network connection.
I instantiate the streams both for reading and for writing using CFStreamCreatePairWithSocketToCFHost(...).
The basic working mechanism to send and receive is…

Pablosproject
- 1,374
- 3
- 13
- 33
0
votes
0 answers
How to change the working directory in iPhone programatlically(FTP)
I am trying to establish FTP connection with FTP server in iOS (Authentication based).
To maintain the login status I am listing the directory and if the directory listing count is zero then login is unsuccessful.
Now my problem is whenever I log…

user968597
- 1,164
- 2
- 15
- 30
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
0 answers
Is there an advantage of using NSStream directly (as opposed to CFNetwork, BSD sockets, etc.)
I am familiar with several of the different ways to do TCP connections (CFNetwork, BSD Sockets, etc.) but I recently discovered NSStream has "XXXwithURL:" APIs which allow TCP connections only using NSStream. Is there any advantage to creating…

Locksleyu
- 5,192
- 8
- 52
- 77
0
votes
1 answer
Trying to build SimpleURLConnection for iPhone 4.3
I took SimpleURLConnections as a basis to do some tests. It all worked fine until I tried to run it on my device and set the target build to 4.3. Then I started getting the following message: If you support iOS prior to 5.0, you must re-enable…

Simon
- 509
- 7
- 25
-1
votes
1 answer
SWIFT - How to get Stream for Server
On client we can use CFStreamCreatePairWithSocketToHost to get ReadStream and WriteStream.
After the server got clientSocket how can we got ReadStream and WriteStreaam?

user3362595
- 31
- 3