ios - CFSocketCreate accept call back failed -


i have existing application creates tcp connection when application build xcode 7, not when created in xcode 8. while using cfstreamcreate create session not getting kcfsocketacceptcallback. tcpserver https://developer.apple.com/library/content/samplecode/minisoap/listings/tcpserver_m.html being used.

ipv4 = cfsocketcreate(kcfallocatordefault, pf_inet, sock_stream, ipproto_tcp, kcfsocketacceptcallback, (cfsocketcallback)&tcpserveracceptcallback, &socketctxt); 

i have come across articles saying ios 9.0 require servers comply app transport security creating http connections devices. valid connections created using cfsockets also? (from here: cfnetwork sslhandshake failed ios 9)

i have included "nsallowarbitraryloads" in info.plist. testing purposes, have added domain(this value dynamic) in nsexceptiondomains well. still didn't work.

currently server has certificates tlsv1. can establish connection successfully?

thanks in advance.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -