[swift-corelibs-dev] NSURLSession & CFNetwork

Robert Stephen Thompson robert.thompson at willowtreeapps.com
Wed Jan 13 12:16:00 CST 2016

I might be wrong (I obviously don’t work for Apple or anything), but when I looked at it, the main stumbling block at this point is the lack of libdispatch. I mean, all the basic network stuff could be implemented with posix APIs no problem, but basically all of what makes NSURLSession et al actually cool comes from GCD. Which does make me wonder what the status of libdispatch is now… I did try building it on Linux and it appears to now build “out of the box” (after installing some additional dependencies), but tests hang. How will we go about integrating it with the corelibs-foundation project once it’s ready to try doing that?

> On Jan 13, 2016, at 1:02 PM, Antoine Palazzolo via swift-corelibs-dev <swift-corelibs-dev at swift.org> wrote:
> I’ve been thinking about the NSURLSession implementation and maybe we should include CFNetwork in the project ? We can also use it for NSStream implementation (CFStream dynamically link with CFNetwork). 
> It can save us a lot of time, but it comes with other dependencies (Security, SystemConfiguration …) and I don’t think the sources have been updated recently (http://www.opensource.apple.com/source/CFNetwork/). 
> Antoine
> _______________________________________________
> swift-corelibs-dev mailing list
> swift-corelibs-dev at swift.org
> https://lists.swift.org/mailman/listinfo/swift-corelibs-dev

More information about the swift-corelibs-dev mailing list