> On Aug 3, 2018, at 4:37 PM, Carl Hoefs <newsli...@autonomy.caltech.edu> 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 (Macnetworkprog@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/macnetworkprog/archive%40mail-archive.com This email sent to arch...@mail-archive.com