0

We are writing a networking library that supports communication between endpoints on a proprietary protocol over UDP. We want to build that library not only for Apple Platforms but also other non-Apple platforms (like Windows, Linux, Android etc.) Considering this, one choice we have is to use POSIX C networking / BSD socket APIs.

One thing, which is NOT coming out clearly from Apple documentation is - can we use BSD sockets APIs and it work on most Apple platforms.

They do mention it won't work on watchOS 9 onwards. Link

The BSD sockets API doesn’t work for networking on watchOS under any circumstances. Use Network framework instead.

BUT nowhere they mention that BSD sockets is one of the supported method in their latest documentation. Link.

Some archived documentation does say, it is a supported method. Link. BUT is it still supported, how would one know?.

Abhishek Jain
  • 9,614
  • 5
  • 26
  • 40
  • Isn't that exactly what SwiftUI is about? – matt Nov 22 '22 at 12:07
  • Not just from UI perspective. Say, i want to build a library which can be used by other developer to build apps for macOS, iOS, iPadOS, tvOS and watchOS. Say, that library is about building a proprietary protocol over standard protocols like HTTP, UDP and sockets system programming. – Abhishek Jain Nov 22 '22 at 12:09
  • 1
    Might it have been germane to ask that _in the question?_ What you just said in your comment appears totally different from the question you asked. – matt Nov 22 '22 at 12:11

0 Answers0