Questions tagged [cfnetworking]

16 questions
9
votes
0 answers

What can use instead CFReadStreamCreateForHTTPRequest?

This method CFReadStreamCreateForHTTPRequest(...) was deprecated for IOS 9 and younger. Docs of Apple suggests to use NSURLSession instead of this. But I don't understand how I can reintegrate functionality which works with Live (I use stream) by…
Vit
  • 936
  • 1
  • 10
  • 20
5
votes
0 answers

Crash in CFNetwork CFAllocatedReferenceCountedObject::_retainable_hash(void const*)

Crash logs: 1 CRASH 1 USER CFNetwork CFAllocatedReferenceCountedObject::_retainable_hash(void const*) Crashed: com.apple.CFNetwork.LoaderQ 0 CFNetwork 0x183985310 CFAllocatedReferenceCountedObject::_retainable_hash(void…
3
votes
0 answers

Updating IP routing table with iOS

Is there a way to programmatically have an iOS app add an entry into your network's routing table? Perhaps via CFNetwork? Basically, the equivalent of this command: $ route add -host
Willam Hill
  • 1,572
  • 1
  • 17
  • 28
3
votes
2 answers

Possible bug in CFNetDiagnosticCopyNetworkStatusPassively? Returning kCFNetDiagnosticConnectionDown over 3G/4G only.

Got a weird bug here. This only manifests when the iOS Device is being used exclusively on 3G/4G networks. i.e. if over WiFi - no bug and it all works fine. - ( BOOL ) isInternetAccessAvailable { CFNetDiagnosticRef diag; diag =…
iOSProgrammingIsFun
  • 1,418
  • 1
  • 15
  • 32
2
votes
1 answer

Mount approval callback on mac OS X

I want to Authorize USB/CD on Mac OS X. Now i am using DiskArbitration framework to get MountApprovalCallback in user mode. But the problem with this callback is that there is no assurance of it. And if i'll get callback i am using…
msforapple
  • 31
  • 1
2
votes
1 answer

Not deleting file from ftp using CFURLDestroyResource method in iphone

I have performed upload,download file from ftp using FTPHelper class. It's working perfectly.The issue generated in delete operation. While I'm deleting file from ftp server, nothing happens!. I don't know where I'm getting wrong. I have refered…
Jekil Patel
  • 403
  • 4
  • 18
2
votes
1 answer

Not able to view active servers through wifi and connect with it all the time by using Bonjour and NSNetServiceBrowserDelegate?

i am working on an App that uses wifi network to pass data from one ipad to another ipads . i have already referred the following sample code about: http://mobileorchard.com/tutorial-networking-and-bonjour-on-ip The above sample code connects…
ABHI
  • 306
  • 1
  • 3
  • 7
0
votes
1 answer

CFNetServiceCallBack example

I'm just starting to write a small iPhone/iPad app to browse network storage and want to search for available disks. I think I'm on the right track with CFNetService and associated functions but I'd love a bit of help at this point: Would someone…
Todd
  • 1,770
  • 1
  • 17
  • 42
0
votes
1 answer

Getting Error when UnArchived NSMutableDictionary o NSData?

I am trying to send a dictionary of information from one iphone to another iphone through wifi/blutooth,for that i implement CFnetwork and NSNetservice Concept.I received Data in the Reciver side. I did code as follows .... **Sender Side** …
0
votes
1 answer

Register two Java web applications with Spring Registry

I want to register two sample Java web applications with Spring Registry so that both applications can communicate directly. I don't know much about programming. Here I found the Spring Registry code, where Spring backend application is registering…
divya
  • 1
  • 1
0
votes
1 answer

Find delay time of socket message at receiver side

I implement the CFNetwork framework for sending and receiving message in local network(All devices are connected with same network). I successfully implement this functionality but my problem is that If i connected more device like 8 to 10 at that…
Parth Mehta
  • 215
  • 3
  • 10
0
votes
1 answer

Network traffic from a iOS SDK

Let's say I want to build a SDK that communicates with a server. I don't want any one (not even the app that implements the SDK) to intercept and look at my requests/responses. If I'd use a common lib like AFNetworking it would be possible to look…
johan
  • 6,578
  • 6
  • 46
  • 68
0
votes
1 answer

Is there any way to implement client certificate authentication using CFNetwork?

I want to implement http requests using CFNetwork instead of NSURLConnection or NSURLSession, but server requires client certificate authentication challenge. Unfortunately I've not figured out how to implement client certificate authentication.…
crazywood
  • 1,455
  • 1
  • 10
  • 17
0
votes
1 answer

How to send data from iphone to bonjour service?

I created an iOS app in objective-c, and this app first browse the local networks. After the app found a bonjour service I would like to read/write data to that computer. I think I should use the CFNetwork framework but which part? What is the…
szu
  • 161
  • 1
  • 3
  • 10
0
votes
2 answers

Allocations using AFNetworking request

I'm using AFNetworking to send requests but when the request finishes its job I'm getting this memory allocations in instruments and they stay there forever... If I try to start another request the application receives memory warning several times…
Ariel Moraes
  • 602
  • 7
  • 15
1
2