Re: Apple modern client/server paradigm
Re: Apple modern client/server paradigm
- Subject: Re: Apple modern client/server paradigm
- From: Josh Graessley <email@hidden>
- Date: Fri, 03 Aug 2018 16:42:29 -0700
> On Aug 3, 2018, at 4:37 PM, Carl Hoefs <email@hidden> wrote:
>
> I thought I should inquire before embarking on a major undertaking...
>
> What is the "standardised" Apple paradigm for implementing modern
> client/server between iOS "client" apps and a macOS "server"? (I'm updating a
> low-level sockets paradigm...)
>
> - Does one use Apache on macOS and place binaries into CGI-Executables? Or
> use something like CocoaHTTPServer to create a custom server? Or...?
>
> - On the iOS side, does one need only use NSURLConnection and friends? Or…?
If you’re using HTTPS use URLSession for the client. For the server I’m not
certain the best approach.
If you’re rolling your own protocol or using a protocol other than HTTPS, you
should consider Network.framework’s NWConnection or NSURLSessionStreamTask for
the client and Network.frameworks NWListener for the server. For information on
Network.framework, see WWDC session 715
https://developer.apple.com/videos/play/wwdc2018/715/
<https://developer.apple.com/videos/play/wwdc2018/715/>
-josh
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden