Creating DTLS connection with UDP session on packet tunnel provider

Hi, I'm using network system extension and implement packet tunnel provider. I want to create a DTLS connection with UDP session but I didn’t see any support on the API createUDPSession(to:from:). I know that I can create TLS connection with the API createTCPSession(to:enableTLS:tlsParameters:delegate:) but I need to use DTLS. Does NWUDPSession support DTLS? or there is a different way for doing it?

Does NWUDPSession support DTLS?

No.

or there is a different way for doing it?

Yes, namely NWConnection.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Creating DTLS connection with UDP session on packet tunnel provider
 
 
Q