Hello!
It's recently come to my attention that to take advantage of "per-app-vpn" we're required to use "Standard networking APIs" (in my world BSD is fairly standard, but I digress). The source base I work with is cross-platform, so Darwin-based platforms share source code with other Unix derivatives.
I found a forum answer [1] which says that we need to use an API to connect by name, and then points further to another answer [2] which would've likely solved our issue. However, in the time since the post was made the mentioned API has been deprecated [3] with no mention of a replacement.
What I would like to know if there's a currently supported way of connecting by name and also having access to the raw socket so that we can keep reusing our current code base with minimal changes (which helps with confidence in making patch releases for older, stable versions).
Alternatively, if there is no such solution: what is the recommended way to support per-app-vpn in our situation?
Thanks,
Mårten
[1] https://developer.apple.com/forums/thread/76448?answerId=225217022#225217022
[2] https://developer.apple.com/forums/thread/65108?answerId=187122022#187122022
[3] https://developer.apple.com/documentation/corefoundation/1539739-cfstreamcreatepairwithsockettoho