Documentation Archive Developer
Search

CFNetwork Changes for Swift

CFNetwork

Removed CFNetServiceClientContext.init(version: CFIndex, info: UnsafeMutablePointer<Void>, retain: CFAllocatorRetainCallBack?, release: CFAllocatorReleaseCallBack?, copyDescription: CFAllocatorCopyDescriptionCallBack?)
Declaration
From
struct CFHostClientContext {
    var version: CFIndex
    var info: UnsafeMutablePointer<Void>
    var retain: CFAllocatorRetainCallBack?
    var release: CFAllocatorReleaseCallBack?
    var copyDescription: CFAllocatorCopyDescriptionCallBack
}
To
struct CFHostClientContext {
    var version: CFIndex
    var info: UnsafeMutableRawPointer?
    var retain: CoreFoundation.CFAllocatorRetainCallBack?
    var release: CoreFoundation.CFAllocatorReleaseCallBack?
    var copyDescription: CoreFoundation.CFAllocatorCopyDescriptionCallBack?
    init()
    init(version version: CFIndex, info info: UnsafeMutableRawPointer?, retain retain: CoreFoundation.CFAllocatorRetainCallBack?, release release: CoreFoundation.CFAllocatorReleaseCallBack?, copyDescription copyDescription: CoreFoundation.CFAllocatorCopyDescriptionCallBack?)
}

Declaration
From
var copyDescription: CFAllocatorCopyDescriptionCallBack
To
var copyDescription: CoreFoundation.CFAllocatorCopyDescriptionCallBack?

Declaration
From
var info: UnsafeMutablePointer<Void>
To
var info: UnsafeMutableRawPointer?

Declaration
From
var release: CFAllocatorReleaseCallBack?
To
var release: CoreFoundation.CFAllocatorReleaseCallBack?

Declaration
From
var retain: CFAllocatorRetainCallBack?
To
var retain: CoreFoundation.CFAllocatorRetainCallBack?

Declaration
From
enum CFHostInfoType : Int32 {
    case Addresses
    case Names
    case Reachability
}
To
enum CFHostInfoType : Int32 {
    case addresses
    case names
    case reachability
}

Declaration
From
case Addresses
To
case addresses

Declaration
From
case Names
To
case names

Declaration
From
case Reachability
To
case reachability

Declaration
From
enum CFNetDiagnosticStatusValues : Int32 {
    case NoErr
    case Err
    case ConnectionUp
    case ConnectionIndeterminate
    case ConnectionDown
}
To
enum CFNetDiagnosticStatusValues : Int32 {
    case noErr
    case err
    case connectionUp
    case connectionIndeterminate
    case connectionDown
}

Declaration
From
case ConnectionDown
To
case connectionDown

Declaration
From
case ConnectionIndeterminate
To
case connectionIndeterminate

Declaration
From
case ConnectionUp
To
case connectionUp

Declaration
From
case Err
To
case err

Declaration
From
case NoErr
To
case noErr

DeclarationProtocols
From
struct CFNetServiceBrowserFlags : OptionSetType {
    init(rawValue rawValue: CFOptionFlags)
    static var MoreComing: CFNetServiceBrowserFlags { get }
    static var IsDomain: CFNetServiceBrowserFlags { get }
    static var IsDefault: CFNetServiceBrowserFlags { get }
    static var IsRegistrationDomain: CFNetServiceBrowserFlags { get }
    static var Remove: CFNetServiceBrowserFlags { get }
}
OptionSetType
To
struct CFNetServiceBrowserFlags : OptionSet {
    init(rawValue rawValue: CFOptionFlags)
    static var moreComing: CFNetServiceBrowserFlags { get }
    static var isDomain: CFNetServiceBrowserFlags { get }
    static var isDefault: CFNetServiceBrowserFlags { get }
    static var isRegistrationDomain: CFNetServiceBrowserFlags { get }
    static var remove: CFNetServiceBrowserFlags { get }
    func intersect(_ other: CFNetServiceBrowserFlags) -> CFNetServiceBrowserFlags
    func exclusiveOr(_ other: CFNetServiceBrowserFlags) -> CFNetServiceBrowserFlags
    mutating func unionInPlace(_ other: CFNetServiceBrowserFlags)
    mutating func intersectInPlace(_ other: CFNetServiceBrowserFlags)
    mutating func exclusiveOrInPlace(_ other: CFNetServiceBrowserFlags)
    func isSubsetOf(_ other: CFNetServiceBrowserFlags) -> Bool
    func isDisjointWith(_ other: CFNetServiceBrowserFlags) -> Bool
    func isSupersetOf(_ other: CFNetServiceBrowserFlags) -> Bool
    mutating func subtractInPlace(_ other: CFNetServiceBrowserFlags)
    func isStrictSupersetOf(_ other: CFNetServiceBrowserFlags) -> Bool
    func isStrictSubsetOf(_ other: CFNetServiceBrowserFlags) -> Bool
}
extension CFNetServiceBrowserFlags {
    func union(_ other: CFNetServiceBrowserFlags) -> CFNetServiceBrowserFlags
    func intersection(_ other: CFNetServiceBrowserFlags) -> CFNetServiceBrowserFlags
    func symmetricDifference(_ other: CFNetServiceBrowserFlags) -> CFNetServiceBrowserFlags
}
extension CFNetServiceBrowserFlags {
    func contains(_ member: CFNetServiceBrowserFlags) -> Bool
    mutating func insert(_ newMember: CFNetServiceBrowserFlags) -> (inserted: Bool, memberAfterInsert: CFNetServiceBrowserFlags)
    mutating func remove(_ member: CFNetServiceBrowserFlags) -> CFNetServiceBrowserFlags?
    mutating func update(with newMember: CFNetServiceBrowserFlags) -> CFNetServiceBrowserFlags?
}
extension CFNetServiceBrowserFlags {
    convenience init()
    mutating func formUnion(_ other: CFNetServiceBrowserFlags)
    mutating func formIntersection(_ other: CFNetServiceBrowserFlags)
    mutating func formSymmetricDifference(_ other: CFNetServiceBrowserFlags)
}
extension CFNetServiceBrowserFlags {
    convenience init<S : Sequence where S.Iterator.Element == CFNetServiceBrowserFlags>(_ sequence: S)
    convenience init(arrayLiteral arrayLiteral: CFNetServiceBrowserFlags...)
    mutating func subtract(_ other: CFNetServiceBrowserFlags)
    func isSubset(of other: CFNetServiceBrowserFlags) -> Bool
    func isSuperset(of other: CFNetServiceBrowserFlags) -> Bool
    func isDisjoint(with other: CFNetServiceBrowserFlags) -> Bool
    func subtracting(_ other: CFNetServiceBrowserFlags) -> CFNetServiceBrowserFlags
    var isEmpty: Bool { get }
    func isStrictSuperset(of other: CFNetServiceBrowserFlags) -> Bool
    func isStrictSubset(of other: CFNetServiceBrowserFlags) -> Bool
}
OptionSet

Declaration
From
static var IsDefault: CFNetServiceBrowserFlags { get }
To
static var isDefault: CFNetServiceBrowserFlags { get }

Declaration
From
static var IsDomain: CFNetServiceBrowserFlags { get }
To
static var isDomain: CFNetServiceBrowserFlags { get }

Declaration
From
static var MoreComing: CFNetServiceBrowserFlags { get }
To
static var moreComing: CFNetServiceBrowserFlags { get }

Declaration
From
static var Remove: CFNetServiceBrowserFlags { get }
To
static var remove: CFNetServiceBrowserFlags { get }

Declaration
From
struct CFNetServiceClientContext {
    var version: CFIndex
    var info: UnsafeMutablePointer<Void>
    var retain: CFAllocatorRetainCallBack?
    var release: CFAllocatorReleaseCallBack?
    var copyDescription: CFAllocatorCopyDescriptionCallBack?
    init()
    init(version version: CFIndex, info info: UnsafeMutablePointer<Void>, retain retain: CFAllocatorRetainCallBack?, release release: CFAllocatorReleaseCallBack?, copyDescription copyDescription: CFAllocatorCopyDescriptionCallBack?)
}
To
struct CFNetServiceClientContext {
    var version: CFIndex
    var info: UnsafeMutableRawPointer?
    var retain: CoreFoundation.CFAllocatorRetainCallBack?
    var release: CoreFoundation.CFAllocatorReleaseCallBack?
    var copyDescription: CoreFoundation.CFAllocatorCopyDescriptionCallBack?
    init()
    init(version version: CFIndex, info info: UnsafeMutableRawPointer?, retain retain: CoreFoundation.CFAllocatorRetainCallBack?, release release: CoreFoundation.CFAllocatorReleaseCallBack?, copyDescription copyDescription: CoreFoundation.CFAllocatorCopyDescriptionCallBack?)
}

Declaration
From
var copyDescription: CFAllocatorCopyDescriptionCallBack?
To
var copyDescription: CoreFoundation.CFAllocatorCopyDescriptionCallBack?

Declaration
From
var info: UnsafeMutablePointer<Void>
To
var info: UnsafeMutableRawPointer?

Declaration
From
var release: CFAllocatorReleaseCallBack?
To
var release: CoreFoundation.CFAllocatorReleaseCallBack?

Declaration
From
var retain: CFAllocatorRetainCallBack?
To
var retain: CoreFoundation.CFAllocatorRetainCallBack?

DeclarationProtocols
From
struct CFNetServiceRegisterFlags : OptionSetType {
    init(rawValue rawValue: CFOptionFlags)
    static var NoAutoRename: CFNetServiceRegisterFlags { get }
}
OptionSetType
To
struct CFNetServiceRegisterFlags : OptionSet {
    init(rawValue rawValue: CFOptionFlags)
    static var noAutoRename: CFNetServiceRegisterFlags { get }
    func intersect(_ other: CFNetServiceRegisterFlags) -> CFNetServiceRegisterFlags
    func exclusiveOr(_ other: CFNetServiceRegisterFlags) -> CFNetServiceRegisterFlags
    mutating func unionInPlace(_ other: CFNetServiceRegisterFlags)
    mutating func intersectInPlace(_ other: CFNetServiceRegisterFlags)
    mutating func exclusiveOrInPlace(_ other: CFNetServiceRegisterFlags)
    func isSubsetOf(_ other: CFNetServiceRegisterFlags) -> Bool
    func isDisjointWith(_ other: CFNetServiceRegisterFlags) -> Bool
    func isSupersetOf(_ other: CFNetServiceRegisterFlags) -> Bool
    mutating func subtractInPlace(_ other: CFNetServiceRegisterFlags)
    func isStrictSupersetOf(_ other: CFNetServiceRegisterFlags) -> Bool
    func isStrictSubsetOf(_ other: CFNetServiceRegisterFlags) -> Bool
}
extension CFNetServiceRegisterFlags {
    func union(_ other: CFNetServiceRegisterFlags) -> CFNetServiceRegisterFlags
    func intersection(_ other: CFNetServiceRegisterFlags) -> CFNetServiceRegisterFlags
    func symmetricDifference(_ other: CFNetServiceRegisterFlags) -> CFNetServiceRegisterFlags
}
extension CFNetServiceRegisterFlags {
    func contains(_ member: CFNetServiceRegisterFlags) -> Bool
    mutating func insert(_ newMember: CFNetServiceRegisterFlags) -> (inserted: Bool, memberAfterInsert: CFNetServiceRegisterFlags)
    mutating func remove(_ member: CFNetServiceRegisterFlags) -> CFNetServiceRegisterFlags?
    mutating func update(with newMember: CFNetServiceRegisterFlags) -> CFNetServiceRegisterFlags?
}
extension CFNetServiceRegisterFlags {
    convenience init()
    mutating func formUnion(_ other: CFNetServiceRegisterFlags)
    mutating func formIntersection(_ other: CFNetServiceRegisterFlags)
    mutating func formSymmetricDifference(_ other: CFNetServiceRegisterFlags)
}
extension CFNetServiceRegisterFlags {
    convenience init<S : Sequence where S.Iterator.Element == CFNetServiceRegisterFlags>(_ sequence: S)
    convenience init(arrayLiteral arrayLiteral: CFNetServiceRegisterFlags...)
    mutating func subtract(_ other: CFNetServiceRegisterFlags)
    func isSubset(of other: CFNetServiceRegisterFlags) -> Bool
    func isSuperset(of other: CFNetServiceRegisterFlags) -> Bool
    func isDisjoint(with other: CFNetServiceRegisterFlags) -> Bool
    func subtracting(_ other: CFNetServiceRegisterFlags) -> CFNetServiceRegisterFlags
    var isEmpty: Bool { get }
    func isStrictSuperset(of other: CFNetServiceRegisterFlags) -> Bool
    func isStrictSubset(of other: CFNetServiceRegisterFlags) -> Bool
}
OptionSet

Declaration
From
static var NoAutoRename: CFNetServiceRegisterFlags { get }
To
static var noAutoRename: CFNetServiceRegisterFlags { get }

Declaration
From
enum CFNetServicesError : Int32 {
    case Unknown
    case Collision
    case NotFound
    case InProgress
    case BadArgument
    case Cancel
    case Invalid
    case Timeout
}
To
enum CFNetServicesError : Int32 {
    case unknown
    case collision
    case notFound
    case inProgress
    case badArgument
    case cancel
    case invalid
    case timeout
}

Declaration
From
case BadArgument
To
case badArgument

Declaration
From
case Cancel
To
case cancel

Declaration
From
case Collision
To
case collision

Declaration
From
case InProgress
To
case inProgress

Declaration
From
case Invalid
To
case invalid

Declaration
From
case NotFound
To
case notFound

Declaration
From
case Timeout
To
case timeout

Declaration
From
case Unknown
To
case unknown

Declaration
From
enum CFNetworkErrors : Int32 {
    case CFHostErrorHostNotFound
    case CFHostErrorUnknown
    case CFSOCKSErrorUnknownClientVersion
    case CFSOCKSErrorUnsupportedServerVersion
    case CFSOCKS4ErrorRequestFailed
    case CFSOCKS4ErrorIdentdFailed
    case CFSOCKS4ErrorIdConflict
    case CFSOCKS4ErrorUnknownStatusCode
    case CFSOCKS5ErrorBadState
    case CFSOCKS5ErrorBadResponseAddr
    case CFSOCKS5ErrorBadCredentials
    case CFSOCKS5ErrorUnsupportedNegotiationMethod
    case CFSOCKS5ErrorNoAcceptableMethod
    case CFFTPErrorUnexpectedStatusCode
    case CFErrorHTTPAuthenticationTypeUnsupported
    case CFErrorHTTPBadCredentials
    case CFErrorHTTPConnectionLost
    case CFErrorHTTPParseFailure
    case CFErrorHTTPRedirectionLoopDetected
    case CFErrorHTTPBadURL
    case CFErrorHTTPProxyConnectionFailure
    case CFErrorHTTPBadProxyCredentials
    case CFErrorPACFileError
    case CFErrorPACFileAuth
    case CFErrorHTTPSProxyConnectionFailure
    case CFStreamErrorHTTPSProxyFailureUnexpectedResponseToCONNECTMethod
    case CFURLErrorBackgroundSessionInUseByAnotherProcess
    case CFURLErrorBackgroundSessionWasDisconnected
    case CFURLErrorUnknown
    case CFURLErrorCancelled
    case CFURLErrorBadURL
    case CFURLErrorTimedOut
    case CFURLErrorUnsupportedURL
    case CFURLErrorCannotFindHost
    case CFURLErrorCannotConnectToHost
    case CFURLErrorNetworkConnectionLost
    case CFURLErrorDNSLookupFailed
    case CFURLErrorHTTPTooManyRedirects
    case CFURLErrorResourceUnavailable
    case CFURLErrorNotConnectedToInternet
    case CFURLErrorRedirectToNonExistentLocation
    case CFURLErrorBadServerResponse
    case CFURLErrorUserCancelledAuthentication
    case CFURLErrorUserAuthenticationRequired
    case CFURLErrorZeroByteResource
    case CFURLErrorCannotDecodeRawData
    case CFURLErrorCannotDecodeContentData
    case CFURLErrorCannotParseResponse
    case CFURLErrorInternationalRoamingOff
    case CFURLErrorCallIsActive
    case CFURLErrorDataNotAllowed
    case CFURLErrorRequestBodyStreamExhausted
    case CFURLErrorAppTransportSecurityRequiresSecureConnection
    case CFURLErrorFileDoesNotExist
    case CFURLErrorFileIsDirectory
    case CFURLErrorNoPermissionsToReadFile
    case CFURLErrorDataLengthExceedsMaximum
    case CFURLErrorSecureConnectionFailed
    case CFURLErrorServerCertificateHasBadDate
    case CFURLErrorServerCertificateUntrusted
    case CFURLErrorServerCertificateHasUnknownRoot
    case CFURLErrorServerCertificateNotYetValid
    case CFURLErrorClientCertificateRejected
    case CFURLErrorClientCertificateRequired
    case CFURLErrorCannotLoadFromNetwork
    case CFURLErrorCannotCreateFile
    case CFURLErrorCannotOpenFile
    case CFURLErrorCannotCloseFile
    case CFURLErrorCannotWriteToFile
    case CFURLErrorCannotRemoveFile
    case CFURLErrorCannotMoveFile
    case CFURLErrorDownloadDecodingFailedMidStream
    case CFURLErrorDownloadDecodingFailedToComplete
    case CFHTTPCookieCannotParseCookieFile
    case CFNetServiceErrorUnknown
    case CFNetServiceErrorCollision
    case CFNetServiceErrorNotFound
    case CFNetServiceErrorInProgress
    case CFNetServiceErrorBadArgument
    case CFNetServiceErrorCancel
    case CFNetServiceErrorInvalid
    case CFNetServiceErrorTimeout
    case CFNetServiceErrorDNSServiceFailure
}
To
enum CFNetworkErrors : Int32 {
    case cfHostErrorHostNotFound
    case cfHostErrorUnknown
    case cfsocksErrorUnknownClientVersion
    case cfsocksErrorUnsupportedServerVersion
    case cfsocks4ErrorRequestFailed
    case cfsocks4ErrorIdentdFailed
    case cfsocks4ErrorIdConflict
    case cfsocks4ErrorUnknownStatusCode
    case cfsocks5ErrorBadState
    case cfsocks5ErrorBadResponseAddr
    case cfsocks5ErrorBadCredentials
    case cfsocks5ErrorUnsupportedNegotiationMethod
    case cfsocks5ErrorNoAcceptableMethod
    case cfftpErrorUnexpectedStatusCode
    case cfErrorHTTPAuthenticationTypeUnsupported
    case cfErrorHTTPBadCredentials
    case cfErrorHTTPConnectionLost
    case cfErrorHTTPParseFailure
    case cfErrorHTTPRedirectionLoopDetected
    case cfErrorHTTPBadURL
    case cfErrorHTTPProxyConnectionFailure
    case cfErrorHTTPBadProxyCredentials
    case cfErrorPACFileError
    case cfErrorPACFileAuth
    case cfErrorHTTPSProxyConnectionFailure
    case cfStreamErrorHTTPSProxyFailureUnexpectedResponseToCONNECTMethod
    case cfurlErrorBackgroundSessionInUseByAnotherProcess
    case cfurlErrorBackgroundSessionWasDisconnected
    case cfurlErrorUnknown
    case cfurlErrorCancelled
    case cfurlErrorBadURL
    case cfurlErrorTimedOut
    case cfurlErrorUnsupportedURL
    case cfurlErrorCannotFindHost
    case cfurlErrorCannotConnectToHost
    case cfurlErrorNetworkConnectionLost
    case cfurlErrorDNSLookupFailed
    case cfurlErrorHTTPTooManyRedirects
    case cfurlErrorResourceUnavailable
    case cfurlErrorNotConnectedToInternet
    case cfurlErrorRedirectToNonExistentLocation
    case cfurlErrorBadServerResponse
    case cfurlErrorUserCancelledAuthentication
    case cfurlErrorUserAuthenticationRequired
    case cfurlErrorZeroByteResource
    case cfurlErrorCannotDecodeRawData
    case cfurlErrorCannotDecodeContentData
    case cfurlErrorCannotParseResponse
    case cfurlErrorInternationalRoamingOff
    case cfurlErrorCallIsActive
    case cfurlErrorDataNotAllowed
    case cfurlErrorRequestBodyStreamExhausted
    case cfurlErrorAppTransportSecurityRequiresSecureConnection
    case cfurlErrorFileDoesNotExist
    case cfurlErrorFileIsDirectory
    case cfurlErrorNoPermissionsToReadFile
    case cfurlErrorDataLengthExceedsMaximum
    case cfurlErrorSecureConnectionFailed
    case cfurlErrorServerCertificateHasBadDate
    case cfurlErrorServerCertificateUntrusted
    case cfurlErrorServerCertificateHasUnknownRoot
    case cfurlErrorServerCertificateNotYetValid
    case cfurlErrorClientCertificateRejected
    case cfurlErrorClientCertificateRequired
    case cfurlErrorCannotLoadFromNetwork
    case cfurlErrorCannotCreateFile
    case cfurlErrorCannotOpenFile
    case cfurlErrorCannotCloseFile
    case cfurlErrorCannotWriteToFile
    case cfurlErrorCannotRemoveFile
    case cfurlErrorCannotMoveFile
    case cfurlErrorDownloadDecodingFailedMidStream
    case cfurlErrorDownloadDecodingFailedToComplete
    case cfhttpCookieCannotParseCookieFile
    case cfNetServiceErrorUnknown
    case cfNetServiceErrorCollision
    case cfNetServiceErrorNotFound
    case cfNetServiceErrorInProgress
    case cfNetServiceErrorBadArgument
    case cfNetServiceErrorCancel
    case cfNetServiceErrorInvalid
    case cfNetServiceErrorTimeout
    case cfNetServiceErrorDNSServiceFailure
}

Declaration
From
case CFErrorHTTPAuthenticationTypeUnsupported
To
case cfErrorHTTPAuthenticationTypeUnsupported

Declaration
From
case CFErrorHTTPBadCredentials
To
case cfErrorHTTPBadCredentials

Declaration
From
case CFErrorHTTPBadProxyCredentials
To
case cfErrorHTTPBadProxyCredentials

Declaration
From
case CFErrorHTTPBadURL
To
case cfErrorHTTPBadURL

Declaration
From
case CFErrorHTTPConnectionLost
To
case cfErrorHTTPConnectionLost

Declaration
From
case CFErrorHTTPParseFailure
To
case cfErrorHTTPParseFailure

Declaration
From
case CFErrorHTTPProxyConnectionFailure
To
case cfErrorHTTPProxyConnectionFailure

Declaration
From
case CFErrorHTTPRedirectionLoopDetected
To
case cfErrorHTTPRedirectionLoopDetected

Declaration
From
case CFErrorHTTPSProxyConnectionFailure
To
case cfErrorHTTPSProxyConnectionFailure

Declaration
From
case CFErrorPACFileAuth
To
case cfErrorPACFileAuth

Declaration
From
case CFErrorPACFileError
To
case cfErrorPACFileError

Declaration
From
case CFFTPErrorUnexpectedStatusCode
To
case cfftpErrorUnexpectedStatusCode

Declaration
From
case CFHostErrorHostNotFound
To
case cfHostErrorHostNotFound

Declaration
From
case CFHostErrorUnknown
To
case cfHostErrorUnknown

Declaration
From
case CFHTTPCookieCannotParseCookieFile
To
case cfhttpCookieCannotParseCookieFile

Declaration
From
case CFNetServiceErrorBadArgument
To
case cfNetServiceErrorBadArgument

Declaration
From
case CFNetServiceErrorCancel
To
case cfNetServiceErrorCancel

Declaration
From
case CFNetServiceErrorCollision
To
case cfNetServiceErrorCollision

Declaration
From
case CFNetServiceErrorDNSServiceFailure
To
case cfNetServiceErrorDNSServiceFailure

Declaration
From
case CFNetServiceErrorInProgress
To
case cfNetServiceErrorInProgress

Declaration
From
case CFNetServiceErrorInvalid
To
case cfNetServiceErrorInvalid

Declaration
From
case CFNetServiceErrorNotFound
To
case cfNetServiceErrorNotFound

Declaration
From
case CFNetServiceErrorTimeout
To
case cfNetServiceErrorTimeout

Declaration
From
case CFNetServiceErrorUnknown
To
case cfNetServiceErrorUnknown

Declaration
From
case CFSOCKS4ErrorIdConflict
To
case cfsocks4ErrorIdConflict

Declaration
From
case CFSOCKS4ErrorIdentdFailed
To
case cfsocks4ErrorIdentdFailed

Declaration
From
case CFSOCKS4ErrorRequestFailed
To
case cfsocks4ErrorRequestFailed

Declaration
From
case CFSOCKS4ErrorUnknownStatusCode
To
case cfsocks4ErrorUnknownStatusCode

Declaration
From
case CFSOCKS5ErrorBadCredentials
To
case cfsocks5ErrorBadCredentials

Declaration
From
case CFSOCKS5ErrorBadResponseAddr
To
case cfsocks5ErrorBadResponseAddr

Declaration
From
case CFSOCKS5ErrorBadState
To
case cfsocks5ErrorBadState

Declaration
From
case CFSOCKS5ErrorNoAcceptableMethod
To
case cfsocks5ErrorNoAcceptableMethod

Declaration
From
case CFSOCKS5ErrorUnsupportedNegotiationMethod
To
case cfsocks5ErrorUnsupportedNegotiationMethod

Declaration
From
case CFSOCKSErrorUnknownClientVersion
To
case cfsocksErrorUnknownClientVersion

Declaration
From
case CFSOCKSErrorUnsupportedServerVersion
To
case cfsocksErrorUnsupportedServerVersion

Declaration
From
case CFStreamErrorHTTPSProxyFailureUnexpectedResponseToCONNECTMethod
To
case cfStreamErrorHTTPSProxyFailureUnexpectedResponseToCONNECTMethod

Declaration
From
case CFURLErrorAppTransportSecurityRequiresSecureConnection
To
case cfurlErrorAppTransportSecurityRequiresSecureConnection

Declaration
From
case CFURLErrorBackgroundSessionInUseByAnotherProcess
To
case cfurlErrorBackgroundSessionInUseByAnotherProcess

Declaration
From
case CFURLErrorBackgroundSessionWasDisconnected
To
case cfurlErrorBackgroundSessionWasDisconnected

Declaration
From
case CFURLErrorBadServerResponse
To
case cfurlErrorBadServerResponse

Declaration
From
case CFURLErrorBadURL
To
case cfurlErrorBadURL

Declaration
From
case CFURLErrorCallIsActive
To
case cfurlErrorCallIsActive

Declaration
From
case CFURLErrorCancelled
To
case cfurlErrorCancelled

Declaration
From
case CFURLErrorCannotCloseFile
To
case cfurlErrorCannotCloseFile

Declaration
From
case CFURLErrorCannotConnectToHost
To
case cfurlErrorCannotConnectToHost

Declaration
From
case CFURLErrorCannotCreateFile
To
case cfurlErrorCannotCreateFile

Declaration
From
case CFURLErrorCannotDecodeContentData
To
case cfurlErrorCannotDecodeContentData

Declaration
From
case CFURLErrorCannotDecodeRawData
To
case cfurlErrorCannotDecodeRawData

Declaration
From
case CFURLErrorCannotFindHost
To
case cfurlErrorCannotFindHost

Declaration
From
case CFURLErrorCannotLoadFromNetwork
To
case cfurlErrorCannotLoadFromNetwork

Declaration
From
case CFURLErrorCannotMoveFile
To
case cfurlErrorCannotMoveFile

Declaration
From
case CFURLErrorCannotOpenFile
To
case cfurlErrorCannotOpenFile

Declaration
From
case CFURLErrorCannotParseResponse
To
case cfurlErrorCannotParseResponse

Declaration
From
case CFURLErrorCannotRemoveFile
To
case cfurlErrorCannotRemoveFile

Declaration
From
case CFURLErrorCannotWriteToFile
To
case cfurlErrorCannotWriteToFile

Declaration
From
case CFURLErrorClientCertificateRejected
To
case cfurlErrorClientCertificateRejected

Declaration
From
case CFURLErrorClientCertificateRequired
To
case cfurlErrorClientCertificateRequired

Declaration
From
case CFURLErrorDataLengthExceedsMaximum
To
case cfurlErrorDataLengthExceedsMaximum

Declaration
From
case CFURLErrorDataNotAllowed
To
case cfurlErrorDataNotAllowed

Declaration
From
case CFURLErrorDNSLookupFailed
To
case cfurlErrorDNSLookupFailed

Declaration
From
case CFURLErrorDownloadDecodingFailedMidStream
To
case cfurlErrorDownloadDecodingFailedMidStream

Declaration
From
case CFURLErrorDownloadDecodingFailedToComplete
To
case cfurlErrorDownloadDecodingFailedToComplete

Declaration
From
case CFURLErrorFileDoesNotExist
To
case cfurlErrorFileDoesNotExist

Declaration
From
case CFURLErrorFileIsDirectory
To
case cfurlErrorFileIsDirectory

Declaration
From
case CFURLErrorHTTPTooManyRedirects
To
case cfurlErrorHTTPTooManyRedirects

Declaration
From
case CFURLErrorInternationalRoamingOff
To
case cfurlErrorInternationalRoamingOff

Declaration
From
case CFURLErrorNetworkConnectionLost
To
case cfurlErrorNetworkConnectionLost

Declaration
From
case CFURLErrorNoPermissionsToReadFile
To
case cfurlErrorNoPermissionsToReadFile

Declaration
From
case CFURLErrorNotConnectedToInternet
To
case cfurlErrorNotConnectedToInternet

Declaration
From
case CFURLErrorRedirectToNonExistentLocation
To
case cfurlErrorRedirectToNonExistentLocation

Declaration
From
case CFURLErrorRequestBodyStreamExhausted
To
case cfurlErrorRequestBodyStreamExhausted

Declaration
From
case CFURLErrorResourceUnavailable
To
case cfurlErrorResourceUnavailable

Declaration
From
case CFURLErrorSecureConnectionFailed
To
case cfurlErrorSecureConnectionFailed

Declaration
From
case CFURLErrorServerCertificateHasBadDate
To
case cfurlErrorServerCertificateHasBadDate

Declaration
From
case CFURLErrorServerCertificateHasUnknownRoot
To
case cfurlErrorServerCertificateHasUnknownRoot

Declaration
From
case CFURLErrorServerCertificateNotYetValid
To
case cfurlErrorServerCertificateNotYetValid

Declaration
From
case CFURLErrorServerCertificateUntrusted
To
case cfurlErrorServerCertificateUntrusted

Declaration
From
case CFURLErrorTimedOut
To
case cfurlErrorTimedOut

Declaration
From
case CFURLErrorUnknown
To
case cfurlErrorUnknown

Declaration
From
case CFURLErrorUnsupportedURL
To
case cfurlErrorUnsupportedURL

Declaration
From
case CFURLErrorUserAuthenticationRequired
To
case cfurlErrorUserAuthenticationRequired

Declaration
From
case CFURLErrorUserCancelledAuthentication
To
case cfurlErrorUserCancelledAuthentication

Declaration
From
case CFURLErrorZeroByteResource
To
case cfurlErrorZeroByteResource

Declaration
From
enum CFStreamErrorHTTP : Int32 {
    case ParseFailure
    case RedirectionLoop
    case BadURL
}
To
enum CFStreamErrorHTTP : Int32 {
    case parseFailure
    case redirectionLoop
    case badURL
}

Declaration
From
case BadURL
To
case badURL

Declaration
From
case ParseFailure
To
case parseFailure

Declaration
From
case RedirectionLoop
To
case redirectionLoop

Declaration
From
enum CFStreamErrorHTTPAuthentication : Int32 {
    case TypeUnsupported
    case BadUserName
    case BadPassword
}
To
enum CFStreamErrorHTTPAuthentication : Int32 {
    case typeUnsupported
    case badUserName
    case badPassword
}

Declaration
From
case BadPassword
To
case badPassword

Declaration
From
case BadUserName
To
case badUserName

Declaration
From
case TypeUnsupported
To
case typeUnsupported

Declaration
From
func CFFTPCreateParsedResourceListing(_ alloc: CFAllocator?, _ buffer: UnsafePointer<UInt8>, _ bufferLength: CFIndex, _ parsed: UnsafeMutablePointer<Unmanaged<CFDictionary>?>) -> CFIndex
To
func CFFTPCreateParsedResourceListing(_ alloc: CFAllocator?, _ buffer: UnsafePointer<UInt8>, _ bufferLength: CFIndex, _ parsed: UnsafeMutablePointer<Unmanaged<CFDictionary>?>?) -> CFIndex

Declaration
From
typealias CFHostClientCallBack = (CFHost, CFHostInfoType, UnsafePointer<CFStreamError>, UnsafeMutablePointer<Void>) -> Void
To
typealias CFHostClientCallBack = (CFHost, CFHostInfoType, UnsafePointer<CFStreamError>?, UnsafeMutableRawPointer?) -> Swift.Void

Declaration
From
func CFHostGetAddressing(_ theHost: CFHost, _ hasBeenResolved: UnsafeMutablePointer<DarwinBoolean>) -> Unmanaged<CFArray>?
To
func CFHostGetAddressing(_ theHost: CFHost, _ hasBeenResolved: UnsafeMutablePointer<DarwinBoolean>?) -> Unmanaged<CFArray>?

Declaration
From
func CFHostGetNames(_ theHost: CFHost, _ hasBeenResolved: UnsafeMutablePointer<DarwinBoolean>) -> Unmanaged<CFArray>?
To
func CFHostGetNames(_ theHost: CFHost, _ hasBeenResolved: UnsafeMutablePointer<DarwinBoolean>?) -> Unmanaged<CFArray>?

Declaration
From
func CFHostGetReachability(_ theHost: CFHost, _ hasBeenResolved: UnsafeMutablePointer<DarwinBoolean>) -> Unmanaged<CFData>?
To
func CFHostGetReachability(_ theHost: CFHost, _ hasBeenResolved: UnsafeMutablePointer<DarwinBoolean>?) -> Unmanaged<CFData>?

Declaration
From
func CFHostSetClient(_ theHost: CFHost, _ clientCB: CFHostClientCallBack?, _ clientContext: UnsafeMutablePointer<CFHostClientContext>) -> Bool
To
func CFHostSetClient(_ theHost: CFHost, _ clientCB: CFNetwork.CFHostClientCallBack?, _ clientContext: UnsafeMutablePointer<CFHostClientContext>?) -> Bool

Declaration
From
func CFHostStartInfoResolution(_ theHost: CFHost, _ info: CFHostInfoType, _ error: UnsafeMutablePointer<CFStreamError>) -> Bool
To
func CFHostStartInfoResolution(_ theHost: CFHost, _ info: CFHostInfoType, _ error: UnsafeMutablePointer<CFStreamError>?) -> Bool

Declaration
From
func CFHTTPAuthenticationIsValid(_ auth: CFHTTPAuthentication, _ error: UnsafeMutablePointer<CFStreamError>) -> Bool
To
func CFHTTPAuthenticationIsValid(_ auth: CFHTTPAuthentication, _ error: UnsafeMutablePointer<CFStreamError>?) -> Bool

Declaration
From
func CFHTTPMessageApplyCredentialDictionary(_ request: CFHTTPMessage, _ auth: CFHTTPAuthentication, _ dict: CFDictionary, _ error: UnsafeMutablePointer<CFStreamError>) -> Bool
To
func CFHTTPMessageApplyCredentialDictionary(_ request: CFHTTPMessage, _ auth: CFHTTPAuthentication, _ dict: CFDictionary, _ error: UnsafeMutablePointer<CFStreamError>?) -> Bool

Declaration
From
func CFHTTPMessageApplyCredentials(_ request: CFHTTPMessage, _ auth: CFHTTPAuthentication, _ username: CFString?, _ password: CFString?, _ error: UnsafeMutablePointer<CFStreamError>) -> Bool
To
func CFHTTPMessageApplyCredentials(_ request: CFHTTPMessage, _ auth: CFHTTPAuthentication, _ username: CFString?, _ password: CFString?, _ error: UnsafeMutablePointer<CFStreamError>?) -> Bool

Declaration
From
func CFNetDiagnosticCopyNetworkStatusPassively(_ details: CFNetDiagnostic, _ description: UnsafeMutablePointer<Unmanaged<CFString>?>) -> CFNetDiagnosticStatus
To
func CFNetDiagnosticCopyNetworkStatusPassively(_ details: CFNetDiagnostic, _ description: UnsafeMutablePointer<Unmanaged<CFString>?>?) -> CFNetDiagnosticStatus

Declaration
From
typealias CFNetServiceBrowserClientCallBack = (CFNetServiceBrowser, CFOptionFlags, AnyObject, UnsafeMutablePointer<CFStreamError>, UnsafeMutablePointer<Void>) -> Void
To
typealias CFNetServiceBrowserClientCallBack = (CFNetServiceBrowser, CFOptionFlags, CFTypeRef?, UnsafeMutablePointer<CFStreamError>?, UnsafeMutableRawPointer?) -> Swift.Void

Declaration
From
func CFNetServiceBrowserCreate(_ alloc: CFAllocator?, _ clientCB: CFNetServiceBrowserClientCallBack, _ clientContext: UnsafeMutablePointer<CFNetServiceClientContext>) -> Unmanaged<CFNetServiceBrowser>
To
func CFNetServiceBrowserCreate(_ alloc: CFAllocator?, _ clientCB: CFNetwork.CFNetServiceBrowserClientCallBack, _ clientContext: UnsafeMutablePointer<CFNetServiceClientContext>) -> Unmanaged<CFNetServiceBrowser>

Declaration
From
func CFNetServiceBrowserSearchForDomains(_ browser: CFNetServiceBrowser, _ registrationDomains: Bool, _ error: UnsafeMutablePointer<CFStreamError>) -> Bool
To
func CFNetServiceBrowserSearchForDomains(_ browser: CFNetServiceBrowser, _ registrationDomains: Bool, _ error: UnsafeMutablePointer<CFStreamError>?) -> Bool

Declaration
From
func CFNetServiceBrowserSearchForServices(_ browser: CFNetServiceBrowser, _ domain: CFString, _ serviceType: CFString, _ error: UnsafeMutablePointer<CFStreamError>) -> Bool
To
func CFNetServiceBrowserSearchForServices(_ browser: CFNetServiceBrowser, _ domain: CFString, _ serviceType: CFString, _ error: UnsafeMutablePointer<CFStreamError>?) -> Bool

Declaration
From
func CFNetServiceBrowserStopSearch(_ browser: CFNetServiceBrowser, _ error: UnsafeMutablePointer<CFStreamError>)
To
func CFNetServiceBrowserStopSearch(_ browser: CFNetServiceBrowser, _ error: UnsafeMutablePointer<CFStreamError>?)

Declaration
From
typealias CFNetServiceClientCallBack = (CFNetService, UnsafeMutablePointer<CFStreamError>, UnsafeMutablePointer<Void>) -> Void
To
typealias CFNetServiceClientCallBack = (CFNetService, UnsafeMutablePointer<CFStreamError>?, UnsafeMutableRawPointer?) -> Swift.Void

Declaration
From
typealias CFNetServiceMonitorClientCallBack = (CFNetServiceMonitor, CFNetService, CFNetServiceMonitorType, CFData, UnsafeMutablePointer<CFStreamError>, UnsafeMutablePointer<Void>) -> Void
To
typealias CFNetServiceMonitorClientCallBack = (CFNetServiceMonitor, CFNetService?, CFNetServiceMonitorType, CFData?, UnsafeMutablePointer<CFStreamError>?, UnsafeMutableRawPointer?) -> Swift.Void

Declaration
From
func CFNetServiceMonitorCreate(_ alloc: CFAllocator?, _ theService: CFNetService, _ clientCB: CFNetServiceMonitorClientCallBack, _ clientContext: UnsafeMutablePointer<CFNetServiceClientContext>) -> Unmanaged<CFNetServiceMonitor>
To
func CFNetServiceMonitorCreate(_ alloc: CFAllocator?, _ theService: CFNetService, _ clientCB: CFNetwork.CFNetServiceMonitorClientCallBack, _ clientContext: UnsafeMutablePointer<CFNetServiceClientContext>) -> Unmanaged<CFNetServiceMonitor>

Declaration
From
func CFNetServiceMonitorStart(_ monitor: CFNetServiceMonitor, _ recordType: CFNetServiceMonitorType, _ error: UnsafeMutablePointer<CFStreamError>) -> Bool
To
func CFNetServiceMonitorStart(_ monitor: CFNetServiceMonitor, _ recordType: CFNetServiceMonitorType, _ error: UnsafeMutablePointer<CFStreamError>?) -> Bool

Declaration
From
func CFNetServiceMonitorStop(_ monitor: CFNetServiceMonitor, _ error: UnsafeMutablePointer<CFStreamError>)
To
func CFNetServiceMonitorStop(_ monitor: CFNetServiceMonitor, _ error: UnsafeMutablePointer<CFStreamError>?)

Declaration
From
func CFNetServiceRegisterWithOptions(_ theService: CFNetService, _ options: CFOptionFlags, _ error: UnsafeMutablePointer<CFStreamError>) -> Bool
To
func CFNetServiceRegisterWithOptions(_ theService: CFNetService, _ options: CFOptionFlags, _ error: UnsafeMutablePointer<CFStreamError>?) -> Bool

Declaration
From
func CFNetServiceResolveWithTimeout(_ theService: CFNetService, _ timeout: CFTimeInterval, _ error: UnsafeMutablePointer<CFStreamError>) -> Bool
To
func CFNetServiceResolveWithTimeout(_ theService: CFNetService, _ timeout: CFTimeInterval, _ error: UnsafeMutablePointer<CFStreamError>?) -> Bool

Declaration
From
func CFNetServiceSetClient(_ theService: CFNetService, _ clientCB: CFNetServiceClientCallBack?, _ clientContext: UnsafeMutablePointer<CFNetServiceClientContext>) -> Bool
To
func CFNetServiceSetClient(_ theService: CFNetService, _ clientCB: CFNetwork.CFNetServiceClientCallBack?, _ clientContext: UnsafeMutablePointer<CFNetServiceClientContext>?) -> Bool

Declaration
From
func CFNetworkCopyProxiesForAutoConfigurationScript(_ proxyAutoConfigurationScript: CFString, _ targetURL: CFURL, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>) -> Unmanaged<CFArray>?
To
func CFNetworkCopyProxiesForAutoConfigurationScript(_ proxyAutoConfigurationScript: CFString, _ targetURL: CFURL, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>?) -> Unmanaged<CFArray>?

Declaration
From
func CFNetworkExecuteProxyAutoConfigurationScript(_ proxyAutoConfigurationScript: CFString, _ targetURL: CFURL, _ cb: CFProxyAutoConfigurationResultCallback, _ clientContext: UnsafeMutablePointer<CFStreamClientContext>) -> Unmanaged<CFRunLoopSource>
To
func CFNetworkExecuteProxyAutoConfigurationScript(_ proxyAutoConfigurationScript: CFString, _ targetURL: CFURL, _ cb: CFNetwork.CFProxyAutoConfigurationResultCallback, _ clientContext: UnsafeMutablePointer<CFStreamClientContext>) -> Unmanaged<CFRunLoopSource>

Declaration
From
func CFNetworkExecuteProxyAutoConfigurationURL(_ proxyAutoConfigURL: CFURL, _ targetURL: CFURL, _ cb: CFProxyAutoConfigurationResultCallback, _ clientContext: UnsafeMutablePointer<CFStreamClientContext>) -> Unmanaged<CFRunLoopSource>
To
func CFNetworkExecuteProxyAutoConfigurationURL(_ proxyAutoConfigURL: CFURL, _ targetURL: CFURL, _ cb: CFNetwork.CFProxyAutoConfigurationResultCallback, _ clientContext: UnsafeMutablePointer<CFStreamClientContext>) -> Unmanaged<CFRunLoopSource>

Declaration
From
typealias CFProxyAutoConfigurationResultCallback = (UnsafeMutablePointer<Void>, CFArray, CFError?) -> Void
To
typealias CFProxyAutoConfigurationResultCallback = (UnsafeMutableRawPointer, CFArray, CFError?) -> Swift.Void

Declaration
From
func CFStreamCreatePairWithSocketToCFHost(_ alloc: CFAllocator?, _ host: CFHost, _ port: Int32, _ readStream: UnsafeMutablePointer<Unmanaged<CFReadStream>?>, _ writeStream: UnsafeMutablePointer<Unmanaged<CFWriteStream>?>)
To
func CFStreamCreatePairWithSocketToCFHost(_ alloc: CFAllocator?, _ host: CFHost, _ port: Int32, _ readStream: UnsafeMutablePointer<Unmanaged<CFReadStream>?>?, _ writeStream: UnsafeMutablePointer<Unmanaged<CFWriteStream>?>?)

Declaration
From
func CFStreamCreatePairWithSocketToNetService(_ alloc: CFAllocator?, _ service: CFNetService, _ readStream: UnsafeMutablePointer<Unmanaged<CFReadStream>?>, _ writeStream: UnsafeMutablePointer<Unmanaged<CFWriteStream>?>)
To
func CFStreamCreatePairWithSocketToNetService(_ alloc: CFAllocator?, _ service: CFNetService, _ readStream: UnsafeMutablePointer<Unmanaged<CFReadStream>?>?, _ writeStream: UnsafeMutablePointer<Unmanaged<CFWriteStream>?>?)