• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Apple modern client/server paradigm
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Apple modern client/server paradigm (From: Carl Hoefs <email@hidden>)

  • Prev by Date: Apple modern client/server paradigm
  • Next by Date: Re: Apple modern client/server paradigm
  • Previous by thread: Apple modern client/server paradigm
  • Next by thread: Re: Apple modern client/server paradigm
  • Index(es):
    • Date
    • Thread