Functions
The following functions are available globally.
-
Do global initialization of network libraries. This is optional, and not recommended anymore.
This functions only exists to work around thread-safety issues with older GnuTLS or OpenSSL libraries. If libavformat is linked to newer versions of those libraries, or if you do not use them, calling this function is unnecessary. Otherwise, you need to call this function before any other threads using them are started.
This function will be deprecated once support for older GnuTLS and OpenSSL libraries is removed, and this function has no purpose anymore.
Declaration
Swift
@discardableResult public func networkInit() -> Int32
-
Undo the initialization done by
networkInit()
. Call it only once for each time you callednetworkInit()
.Declaration
Swift
@discardableResult public func networkDeinit() -> Int32