[swift-corelibs-dev] NSURLSession & CFNetwork
phausler at apple.com
Wed Jan 13 13:08:32 CST 2016
There are a few other things to consider: SSL for streams, certificates, and asynchronous host name resolution.
> On Jan 13, 2016, at 10:57 AM, Antoine Palazzolo via swift-corelibs-dev <swift-corelibs-dev at swift.org> wrote:
> Basic tcp networking can be implemented with with posix api, but the http/https protocol needs an implementation?
>> 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?
>>> 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/).
>>> swift-corelibs-dev mailing list
>>> swift-corelibs-dev at swift.org
> swift-corelibs-dev mailing list
> swift-corelibs-dev at swift.org
More information about the swift-corelibs-dev