-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workaround for nw_parameters_create_secure_udp
- Loading branch information
Showing
3 changed files
with
37 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package = com.tidal.networktime.network_framework | ||
language = Objective-C | ||
|
||
--- | ||
// https://stackoverflow.com/a/63050804 | ||
|
||
#include <Network/Network.h> | ||
|
||
NW_RETURNS_RETAINED nw_parameters_t nw_parameters_create_secure_udp_workaround() { | ||
return nw_parameters_create_secure_udp( | ||
withTls ? NW_PARAMETERS_DEFAULT_CONFIGURATION : NW_PARAMETERS_DISABLE_PROTOCOL, | ||
NW_PARAMETERS_DEFAULT_CONFIGURATION | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters