[swift-corelibs-dev] NSURLSession & CFNetwork

Antoine Palazzolo antoine.palazzolo at gmail.com
Wed Jan 13 12:57:12 CST 2016


Basic tcp networking can be implemented with with posix api, but the http/https protocol needs an implementation?

Antoine 
> On 13 janv. 2016, at 7:16 PM, Robert Stephen Thompson <robert.thompson at willowtreeapps.com> wrote:
> 
> 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?
> 
> Thanks,
> Robert
>> 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