Documentation Archive Developer
Search

CFNetwork Changes for Objective-C

CFNetwork

CFFTPStream.h

DeclarationDeprecation
From
CFIndex CFFTPCreateParsedResourceListing (
    CFAllocatorRef alloc,
    const UInt8 *buffer,
    CFIndex bufferLength,
    CFDictionaryRef *parsed
);
--
To
CFIndex CFFTPCreateParsedResourceListing (
    CFAllocatorRef _Nullable alloc,
    const UInt8 * _Nonnull buffer,
    CFIndex bufferLength,
    CFDictionaryRef  _Nullable * _Nullable parsed
);
OS X 10.11

DeclarationDeprecation
From
CFReadStreamRef CFReadStreamCreateWithFTPURL (
    CFAllocatorRef alloc,
    CFURLRef ftpURL
);
--
To
CFReadStreamRef _Nonnull CFReadStreamCreateWithFTPURL (
    CFAllocatorRef _Nullable alloc,
    CFURLRef _Nonnull ftpURL
);
OS X 10.11

DeclarationDeprecation
From
CFWriteStreamRef CFWriteStreamCreateWithFTPURL (
    CFAllocatorRef alloc,
    CFURLRef ftpURL
);
--
To
CFWriteStreamRef _Nonnull CFWriteStreamCreateWithFTPURL (
    CFAllocatorRef _Nullable alloc,
    CFURLRef _Nonnull ftpURL
);
OS X 10.11

Deprecation
From--
ToOS X 10.11

Deprecation
From--
ToOS X 10.11

Deprecation
From--
ToOS X 10.11

Deprecation
From--
ToOS X 10.11

Deprecation
From--
ToOS X 10.11

Deprecation
From--
ToOS X 10.11

Deprecation
From--
ToOS X 10.11

Deprecation
From--
ToOS X 10.11

Deprecation
From--
ToOS X 10.11

Deprecation
From--
ToOS X 10.11

Deprecation
From--
ToOS X 10.11

Deprecation
From--
ToOS X 10.11

Deprecation
From--
ToOS X 10.11

Deprecation
From--
ToOS X 10.11

Deprecation
From--
ToOS X 10.11

Deprecation
From--
ToOS X 10.11

Deprecation
From--
ToOS X 10.11

Deprecation
From--
ToOS X 10.11

Deprecation
From--
ToOS X 10.11

Deprecation
From--
ToOS X 10.11

CFHost.h

Declaration
From
void CFHostCancelInfoResolution (
    CFHostRef theHost,
    CFHostInfoType info
);
To
void CFHostCancelInfoResolution (
    CFHostRef _Nonnull theHost,
    CFHostInfoType info
);

Declaration
From
CFHostRef CFHostCreateCopy (
    CFAllocatorRef alloc,
    CFHostRef host
);
To
CFHostRef _Nonnull CFHostCreateCopy (
    CFAllocatorRef _Nullable alloc,
    CFHostRef _Nonnull host
);

Declaration
From
CFHostRef CFHostCreateWithAddress (
    CFAllocatorRef allocator,
    CFDataRef addr
);
To
CFHostRef _Nonnull CFHostCreateWithAddress (
    CFAllocatorRef _Nullable allocator,
    CFDataRef _Nonnull addr
);

Declaration
From
CFHostRef CFHostCreateWithName (
    CFAllocatorRef allocator,
    CFStringRef hostname
);
To
CFHostRef _Nonnull CFHostCreateWithName (
    CFAllocatorRef _Nullable allocator,
    CFStringRef _Nonnull hostname
);

Declaration
From
CFArrayRef CFHostGetAddressing (
    CFHostRef theHost,
    Boolean *hasBeenResolved
);
To
CFArrayRef _Nullable CFHostGetAddressing (
    CFHostRef _Nonnull theHost,
    Boolean * _Nullable hasBeenResolved
);

Declaration
From
CFArrayRef CFHostGetNames (
    CFHostRef theHost,
    Boolean *hasBeenResolved
);
To
CFArrayRef _Nullable CFHostGetNames (
    CFHostRef _Nonnull theHost,
    Boolean * _Nullable hasBeenResolved
);

Declaration
From
CFDataRef CFHostGetReachability (
    CFHostRef theHost,
    Boolean *hasBeenResolved
);
To
CFDataRef _Nullable CFHostGetReachability (
    CFHostRef _Nonnull theHost,
    Boolean * _Nullable hasBeenResolved
);

Declaration
From
void CFHostScheduleWithRunLoop (
    CFHostRef theHost,
    CFRunLoopRef runLoop,
    CFStringRef runLoopMode
);
To
void CFHostScheduleWithRunLoop (
    CFHostRef _Nonnull theHost,
    CFRunLoopRef _Nonnull runLoop,
    CFStringRef _Nonnull runLoopMode
);

Declaration
From
Boolean CFHostSetClient (
    CFHostRef theHost,
    CFHostClientCallBack clientCB,
    CFHostClientContext *clientContext
);
To
Boolean CFHostSetClient (
    CFHostRef _Nonnull theHost,
    CFHostClientCallBack _Nullable clientCB,
    CFHostClientContext * _Nullable clientContext
);

Declaration
From
Boolean CFHostStartInfoResolution (
    CFHostRef theHost,
    CFHostInfoType info,
    CFStreamError *error
);
To
Boolean CFHostStartInfoResolution (
    CFHostRef _Nonnull theHost,
    CFHostInfoType info,
    CFStreamError * _Nullable error
);

Declaration
From
void CFHostUnscheduleFromRunLoop (
    CFHostRef theHost,
    CFRunLoopRef runLoop,
    CFStringRef runLoopMode
);
To
void CFHostUnscheduleFromRunLoop (
    CFHostRef _Nonnull theHost,
    CFRunLoopRef _Nonnull runLoop,
    CFStringRef _Nonnull runLoopMode
);

CFHTTPAuthentication.h

Declaration
From
Boolean CFHTTPAuthenticationAppliesToRequest (
    CFHTTPAuthenticationRef auth,
    CFHTTPMessageRef request
);
To
Boolean CFHTTPAuthenticationAppliesToRequest (
    CFHTTPAuthenticationRef _Nonnull auth,
    CFHTTPMessageRef _Nonnull request
);

Declaration
From
CFArrayRef CFHTTPAuthenticationCopyDomains (
    CFHTTPAuthenticationRef auth
);
To
CFArrayRef _Nonnull CFHTTPAuthenticationCopyDomains (
    CFHTTPAuthenticationRef _Nonnull auth
);

Declaration
From
CFStringRef CFHTTPAuthenticationCopyMethod (
    CFHTTPAuthenticationRef auth
);
To
CFStringRef _Nonnull CFHTTPAuthenticationCopyMethod (
    CFHTTPAuthenticationRef _Nonnull auth
);

Declaration
From
CFStringRef CFHTTPAuthenticationCopyRealm (
    CFHTTPAuthenticationRef auth
);
To
CFStringRef _Nonnull CFHTTPAuthenticationCopyRealm (
    CFHTTPAuthenticationRef _Nonnull auth
);

Declaration
From
CFHTTPAuthenticationRef CFHTTPAuthenticationCreateFromResponse (
    CFAllocatorRef alloc,
    CFHTTPMessageRef response
);
To
CFHTTPAuthenticationRef _Nonnull CFHTTPAuthenticationCreateFromResponse (
    CFAllocatorRef _Nullable alloc,
    CFHTTPMessageRef _Nonnull response
);

Declaration
From
Boolean CFHTTPAuthenticationIsValid (
    CFHTTPAuthenticationRef auth,
    CFStreamError *error
);
To
Boolean CFHTTPAuthenticationIsValid (
    CFHTTPAuthenticationRef _Nonnull auth,
    CFStreamError * _Nullable error
);

Declaration
From
Boolean CFHTTPAuthenticationRequiresAccountDomain (
    CFHTTPAuthenticationRef auth
);
To
Boolean CFHTTPAuthenticationRequiresAccountDomain (
    CFHTTPAuthenticationRef _Nonnull auth
);

Declaration
From
Boolean CFHTTPAuthenticationRequiresOrderedRequests (
    CFHTTPAuthenticationRef auth
);
To
Boolean CFHTTPAuthenticationRequiresOrderedRequests (
    CFHTTPAuthenticationRef _Nonnull auth
);

Declaration
From
Boolean CFHTTPAuthenticationRequiresUserNameAndPassword (
    CFHTTPAuthenticationRef auth
);
To
Boolean CFHTTPAuthenticationRequiresUserNameAndPassword (
    CFHTTPAuthenticationRef _Nonnull auth
);

Declaration
From
Boolean CFHTTPMessageApplyCredentialDictionary (
    CFHTTPMessageRef request,
    CFHTTPAuthenticationRef auth,
    CFDictionaryRef dict,
    CFStreamError *error
);
To
Boolean CFHTTPMessageApplyCredentialDictionary (
    CFHTTPMessageRef _Nonnull request,
    CFHTTPAuthenticationRef _Nonnull auth,
    CFDictionaryRef _Nonnull dict,
    CFStreamError * _Nullable error
);

Declaration
From
Boolean CFHTTPMessageApplyCredentials (
    CFHTTPMessageRef request,
    CFHTTPAuthenticationRef auth,
    CFStringRef username,
    CFStringRef password,
    CFStreamError *error
);
To
Boolean CFHTTPMessageApplyCredentials (
    CFHTTPMessageRef _Nonnull request,
    CFHTTPAuthenticationRef _Nonnull auth,
    CFStringRef _Nullable username,
    CFStringRef _Nullable password,
    CFStreamError * _Nullable error
);

CFHTTPMessage.h

Declaration
From
Boolean CFHTTPMessageAddAuthentication (
    CFHTTPMessageRef request,
    CFHTTPMessageRef authenticationFailureResponse,
    CFStringRef username,
    CFStringRef password,
    CFStringRef authenticationScheme,
    Boolean forProxy
);
To
Boolean CFHTTPMessageAddAuthentication (
    CFHTTPMessageRef _Nonnull request,
    CFHTTPMessageRef _Nullable authenticationFailureResponse,
    CFStringRef _Nonnull username,
    CFStringRef _Nonnull password,
    CFStringRef _Nullable authenticationScheme,
    Boolean forProxy
);

Declaration
From
Boolean CFHTTPMessageAppendBytes (
    CFHTTPMessageRef message,
    const UInt8 *newBytes,
    CFIndex numBytes
);
To
Boolean CFHTTPMessageAppendBytes (
    CFHTTPMessageRef _Nonnull message,
    const UInt8 * _Nonnull newBytes,
    CFIndex numBytes
);

Declaration
From
CFDictionaryRef CFHTTPMessageCopyAllHeaderFields (
    CFHTTPMessageRef message
);
To
CFDictionaryRef _Nullable CFHTTPMessageCopyAllHeaderFields (
    CFHTTPMessageRef _Nonnull message
);

Declaration
From
CFDataRef CFHTTPMessageCopyBody (
    CFHTTPMessageRef message
);
To
CFDataRef _Nullable CFHTTPMessageCopyBody (
    CFHTTPMessageRef _Nonnull message
);

Declaration
From
CFStringRef CFHTTPMessageCopyHeaderFieldValue (
    CFHTTPMessageRef message,
    CFStringRef headerField
);
To
CFStringRef _Nullable CFHTTPMessageCopyHeaderFieldValue (
    CFHTTPMessageRef _Nonnull message,
    CFStringRef _Nonnull headerField
);

Declaration
From
CFStringRef CFHTTPMessageCopyRequestMethod (
    CFHTTPMessageRef request
);
To
CFStringRef _Nullable CFHTTPMessageCopyRequestMethod (
    CFHTTPMessageRef _Nonnull request
);

Declaration
From
CFURLRef CFHTTPMessageCopyRequestURL (
    CFHTTPMessageRef request
);
To
CFURLRef _Nullable CFHTTPMessageCopyRequestURL (
    CFHTTPMessageRef _Nonnull request
);

Declaration
From
CFStringRef CFHTTPMessageCopyResponseStatusLine (
    CFHTTPMessageRef response
);
To
CFStringRef _Nullable CFHTTPMessageCopyResponseStatusLine (
    CFHTTPMessageRef _Nonnull response
);

Declaration
From
CFDataRef CFHTTPMessageCopySerializedMessage (
    CFHTTPMessageRef message
);
To
CFDataRef _Nullable CFHTTPMessageCopySerializedMessage (
    CFHTTPMessageRef _Nonnull message
);

Declaration
From
CFStringRef CFHTTPMessageCopyVersion (
    CFHTTPMessageRef message
);
To
CFStringRef _Nonnull CFHTTPMessageCopyVersion (
    CFHTTPMessageRef _Nonnull message
);

Declaration
From
CFHTTPMessageRef CFHTTPMessageCreateCopy (
    CFAllocatorRef alloc,
    CFHTTPMessageRef message
);
To
CFHTTPMessageRef _Nonnull CFHTTPMessageCreateCopy (
    CFAllocatorRef _Nullable alloc,
    CFHTTPMessageRef _Nonnull message
);

Declaration
From
CFHTTPMessageRef CFHTTPMessageCreateEmpty (
    CFAllocatorRef alloc,
    Boolean isRequest
);
To
CFHTTPMessageRef _Nonnull CFHTTPMessageCreateEmpty (
    CFAllocatorRef _Nullable alloc,
    Boolean isRequest
);

Declaration
From
CFHTTPMessageRef CFHTTPMessageCreateRequest (
    CFAllocatorRef alloc,
    CFStringRef requestMethod,
    CFURLRef url,
    CFStringRef httpVersion
);
To
CFHTTPMessageRef _Nonnull CFHTTPMessageCreateRequest (
    CFAllocatorRef _Nullable alloc,
    CFStringRef _Nonnull requestMethod,
    CFURLRef _Nonnull url,
    CFStringRef _Nonnull httpVersion
);

Declaration
From
CFHTTPMessageRef CFHTTPMessageCreateResponse (
    CFAllocatorRef alloc,
    CFIndex statusCode,
    CFStringRef statusDescription,
    CFStringRef httpVersion
);
To
CFHTTPMessageRef _Nonnull CFHTTPMessageCreateResponse (
    CFAllocatorRef _Nullable alloc,
    CFIndex statusCode,
    CFStringRef _Nullable statusDescription,
    CFStringRef _Nonnull httpVersion
);

Declaration
From
CFIndex CFHTTPMessageGetResponseStatusCode (
    CFHTTPMessageRef response
);
To
CFIndex CFHTTPMessageGetResponseStatusCode (
    CFHTTPMessageRef _Nonnull response
);

Declaration
From
Boolean CFHTTPMessageIsHeaderComplete (
    CFHTTPMessageRef message
);
To
Boolean CFHTTPMessageIsHeaderComplete (
    CFHTTPMessageRef _Nonnull message
);

Declaration
From
Boolean CFHTTPMessageIsRequest (
    CFHTTPMessageRef message
);
To
Boolean CFHTTPMessageIsRequest (
    CFHTTPMessageRef _Nonnull message
);

Declaration
From
void CFHTTPMessageSetBody (
    CFHTTPMessageRef message,
    CFDataRef bodyData
);
To
void CFHTTPMessageSetBody (
    CFHTTPMessageRef _Nonnull message,
    CFDataRef _Nonnull bodyData
);

Declaration
From
void CFHTTPMessageSetHeaderFieldValue (
    CFHTTPMessageRef message,
    CFStringRef headerField,
    CFStringRef value
);
To
void CFHTTPMessageSetHeaderFieldValue (
    CFHTTPMessageRef _Nonnull message,
    CFStringRef _Nonnull headerField,
    CFStringRef _Nullable value
);

CFHTTPStream.h

Declaration
From
void CFHTTPReadStreamSetRedirectsAutomatically (
    CFReadStreamRef httpStream,
    Boolean shouldAutoRedirect
);
To
void CFHTTPReadStreamSetRedirectsAutomatically (
    CFReadStreamRef _Nonnull httpStream,
    Boolean shouldAutoRedirect
);

DeclarationIntroductionDeprecation
From
CFReadStreamRef CFReadStreamCreateForHTTPRequest (
    CFAllocatorRef alloc,
    CFHTTPMessageRef request
);
OS X 10.1--
To
CFReadStreamRef _Nonnull CFReadStreamCreateForHTTPRequest (
    CFAllocatorRef _Nullable alloc,
    CFHTTPMessageRef _Nonnull request
);
OS X 10.2OS X 10.11

DeclarationDeprecation
From
CFReadStreamRef CFReadStreamCreateForStreamedHTTPRequest (
    CFAllocatorRef alloc,
    CFHTTPMessageRef requestHeaders,
    CFReadStreamRef requestBody
);
--
To
CFReadStreamRef _Nonnull CFReadStreamCreateForStreamedHTTPRequest (
    CFAllocatorRef _Nullable alloc,
    CFHTTPMessageRef _Nonnull requestHeaders,
    CFReadStreamRef _Nonnull requestBody
);
OS X 10.11

Deprecation
From--
ToOS X 10.11

Deprecation
From--
ToOS X 10.11

Deprecation
From--
ToOS X 10.11

Deprecation
From--
ToOS X 10.11

Deprecation
From--
ToOS X 10.11

Deprecation
From--
ToOS X 10.11

Deprecation
From--
ToOS X 10.11

Deprecation
From--
ToOS X 10.11

Deprecation
From--
ToOS X 10.11

Deprecation
From--
ToOS X 10.11

Deprecation
From--
ToOS X 10.11

CFNetDiagnostics.h

Declaration
From
CFNetDiagnosticStatus CFNetDiagnosticCopyNetworkStatusPassively (
    CFNetDiagnosticRef details,
    CFStringRef *description
);
To
CFNetDiagnosticStatus CFNetDiagnosticCopyNetworkStatusPassively (
    CFNetDiagnosticRef _Nonnull details,
    CFStringRef  _Nullable * _Nullable description
);

Declaration
From
CFNetDiagnosticRef CFNetDiagnosticCreateWithStreams (
    CFAllocatorRef alloc,
    CFReadStreamRef readStream,
    CFWriteStreamRef writeStream
);
To
CFNetDiagnosticRef _Nonnull CFNetDiagnosticCreateWithStreams (
    CFAllocatorRef _Nullable alloc,
    CFReadStreamRef _Nullable readStream,
    CFWriteStreamRef _Nullable writeStream
);

Declaration
From
CFNetDiagnosticRef CFNetDiagnosticCreateWithURL (
    CFAllocatorRef alloc,
    CFURLRef url
);
To
CFNetDiagnosticRef _Nonnull CFNetDiagnosticCreateWithURL (
    CFAllocatorRef _Nonnull alloc,
    CFURLRef _Nonnull url
);

Declaration
From
CFNetDiagnosticStatus CFNetDiagnosticDiagnoseProblemInteractively (
    CFNetDiagnosticRef details
);
To
CFNetDiagnosticStatus CFNetDiagnosticDiagnoseProblemInteractively (
    CFNetDiagnosticRef _Nonnull details
);

Declaration
From
void CFNetDiagnosticSetName (
    CFNetDiagnosticRef details,
    CFStringRef name
);
To
void CFNetDiagnosticSetName (
    CFNetDiagnosticRef _Nonnull details,
    CFStringRef _Nonnull name
);

CFNetServices.h

Declaration
From
CFNetServiceBrowserRef CFNetServiceBrowserCreate (
    CFAllocatorRef alloc,
    CFNetServiceBrowserClientCallBack clientCB,
    CFNetServiceClientContext *clientContext
);
To
CFNetServiceBrowserRef _Nonnull CFNetServiceBrowserCreate (
    CFAllocatorRef _Nullable alloc,
    CFNetServiceBrowserClientCallBack _Nonnull clientCB,
    CFNetServiceClientContext * _Nonnull clientContext
);

Declaration
From
void CFNetServiceBrowserInvalidate (
    CFNetServiceBrowserRef browser
);
To
void CFNetServiceBrowserInvalidate (
    CFNetServiceBrowserRef _Nonnull browser
);

Declaration
From
void CFNetServiceBrowserScheduleWithRunLoop (
    CFNetServiceBrowserRef browser,
    CFRunLoopRef runLoop,
    CFStringRef runLoopMode
);
To
void CFNetServiceBrowserScheduleWithRunLoop (
    CFNetServiceBrowserRef _Nonnull browser,
    CFRunLoopRef _Nonnull runLoop,
    CFStringRef _Nonnull runLoopMode
);

Declaration
From
Boolean CFNetServiceBrowserSearchForDomains (
    CFNetServiceBrowserRef browser,
    Boolean registrationDomains,
    CFStreamError *error
);
To
Boolean CFNetServiceBrowserSearchForDomains (
    CFNetServiceBrowserRef _Nonnull browser,
    Boolean registrationDomains,
    CFStreamError * _Nullable error
);

Declaration
From
Boolean CFNetServiceBrowserSearchForServices (
    CFNetServiceBrowserRef browser,
    CFStringRef domain,
    CFStringRef serviceType,
    CFStreamError *error
);
To
Boolean CFNetServiceBrowserSearchForServices (
    CFNetServiceBrowserRef _Nonnull browser,
    CFStringRef _Nonnull domain,
    CFStringRef _Nonnull serviceType,
    CFStreamError * _Nullable error
);

Declaration
From
void CFNetServiceBrowserStopSearch (
    CFNetServiceBrowserRef browser,
    CFStreamError *error
);
To
void CFNetServiceBrowserStopSearch (
    CFNetServiceBrowserRef _Nonnull browser,
    CFStreamError * _Nullable error
);

Declaration
From
void CFNetServiceBrowserUnscheduleFromRunLoop (
    CFNetServiceBrowserRef browser,
    CFRunLoopRef runLoop,
    CFStringRef runLoopMode
);
To
void CFNetServiceBrowserUnscheduleFromRunLoop (
    CFNetServiceBrowserRef _Nonnull browser,
    CFRunLoopRef _Nonnull runLoop,
    CFStringRef _Nonnull runLoopMode
);

Declaration
From
void CFNetServiceCancel (
    CFNetServiceRef theService
);
To
void CFNetServiceCancel (
    CFNetServiceRef _Nonnull theService
);

Declaration
From
CFNetServiceRef CFNetServiceCreate (
    CFAllocatorRef alloc,
    CFStringRef domain,
    CFStringRef serviceType,
    CFStringRef name,
    SInt32 port
);
To
CFNetServiceRef _Nonnull CFNetServiceCreate (
    CFAllocatorRef _Nullable alloc,
    CFStringRef _Nonnull domain,
    CFStringRef _Nonnull serviceType,
    CFStringRef _Nonnull name,
    SInt32 port
);

Declaration
From
CFNetServiceRef CFNetServiceCreateCopy (
    CFAllocatorRef alloc,
    CFNetServiceRef service
);
To
CFNetServiceRef _Nonnull CFNetServiceCreateCopy (
    CFAllocatorRef _Nullable alloc,
    CFNetServiceRef _Nonnull service
);

Declaration
From
CFDictionaryRef CFNetServiceCreateDictionaryWithTXTData (
    CFAllocatorRef alloc,
    CFDataRef txtRecord
);
To
CFDictionaryRef _Nullable CFNetServiceCreateDictionaryWithTXTData (
    CFAllocatorRef _Nullable alloc,
    CFDataRef _Nonnull txtRecord
);

Declaration
From
CFDataRef CFNetServiceCreateTXTDataWithDictionary (
    CFAllocatorRef alloc,
    CFDictionaryRef keyValuePairs
);
To
CFDataRef _Nullable CFNetServiceCreateTXTDataWithDictionary (
    CFAllocatorRef _Nullable alloc,
    CFDictionaryRef _Nonnull keyValuePairs
);

Declaration
From
CFArrayRef CFNetServiceGetAddressing (
    CFNetServiceRef theService
);
To
CFArrayRef _Nullable CFNetServiceGetAddressing (
    CFNetServiceRef _Nonnull theService
);

Declaration
From
CFStringRef CFNetServiceGetDomain (
    CFNetServiceRef theService
);
To
CFStringRef _Nonnull CFNetServiceGetDomain (
    CFNetServiceRef _Nonnull theService
);

Declaration
From
CFStringRef CFNetServiceGetName (
    CFNetServiceRef theService
);
To
CFStringRef _Nonnull CFNetServiceGetName (
    CFNetServiceRef _Nonnull theService
);

Declaration
From
SInt32 CFNetServiceGetPortNumber (
    CFNetServiceRef theService
);
To
SInt32 CFNetServiceGetPortNumber (
    CFNetServiceRef _Nonnull theService
);

Declaration
From
CFStringRef CFNetServiceGetProtocolSpecificInformation (
    CFNetServiceRef theService
);
To
CFStringRef _Nullable CFNetServiceGetProtocolSpecificInformation (
    CFNetServiceRef _Nonnull theService
);

Declaration
From
CFStringRef CFNetServiceGetTargetHost (
    CFNetServiceRef theService
);
To
CFStringRef _Nullable CFNetServiceGetTargetHost (
    CFNetServiceRef _Nonnull theService
);

Declaration
From
CFDataRef CFNetServiceGetTXTData (
    CFNetServiceRef theService
);
To
CFDataRef _Nullable CFNetServiceGetTXTData (
    CFNetServiceRef _Nonnull theService
);

Declaration
From
CFStringRef CFNetServiceGetType (
    CFNetServiceRef theService
);
To
CFStringRef _Nonnull CFNetServiceGetType (
    CFNetServiceRef _Nonnull theService
);

Declaration
From
CFNetServiceMonitorRef CFNetServiceMonitorCreate (
    CFAllocatorRef alloc,
    CFNetServiceRef theService,
    CFNetServiceMonitorClientCallBack clientCB,
    CFNetServiceClientContext *clientContext
);
To
CFNetServiceMonitorRef _Nonnull CFNetServiceMonitorCreate (
    CFAllocatorRef _Nullable alloc,
    CFNetServiceRef _Nonnull theService,
    CFNetServiceMonitorClientCallBack _Nonnull clientCB,
    CFNetServiceClientContext * _Nonnull clientContext
);

Declaration
From
void CFNetServiceMonitorInvalidate (
    CFNetServiceMonitorRef monitor
);
To
void CFNetServiceMonitorInvalidate (
    CFNetServiceMonitorRef _Nonnull monitor
);

Declaration
From
void CFNetServiceMonitorScheduleWithRunLoop (
    CFNetServiceMonitorRef monitor,
    CFRunLoopRef runLoop,
    CFStringRef runLoopMode
);
To
void CFNetServiceMonitorScheduleWithRunLoop (
    CFNetServiceMonitorRef _Nonnull monitor,
    CFRunLoopRef _Nonnull runLoop,
    CFStringRef _Nonnull runLoopMode
);

Declaration
From
Boolean CFNetServiceMonitorStart (
    CFNetServiceMonitorRef monitor,
    CFNetServiceMonitorType recordType,
    CFStreamError *error
);
To
Boolean CFNetServiceMonitorStart (
    CFNetServiceMonitorRef _Nonnull monitor,
    CFNetServiceMonitorType recordType,
    CFStreamError * _Nullable error
);

Declaration
From
void CFNetServiceMonitorStop (
    CFNetServiceMonitorRef monitor,
    CFStreamError *error
);
To
void CFNetServiceMonitorStop (
    CFNetServiceMonitorRef _Nonnull monitor,
    CFStreamError * _Nullable error
);

Declaration
From
void CFNetServiceMonitorUnscheduleFromRunLoop (
    CFNetServiceMonitorRef monitor,
    CFRunLoopRef runLoop,
    CFStringRef runLoopMode
);
To
void CFNetServiceMonitorUnscheduleFromRunLoop (
    CFNetServiceMonitorRef _Nonnull monitor,
    CFRunLoopRef _Nonnull runLoop,
    CFStringRef _Nonnull runLoopMode
);

Declaration
From
Boolean CFNetServiceRegister (
    CFNetServiceRef theService,
    CFStreamError *error
);
To
Boolean CFNetServiceRegister (
    CFNetServiceRef _Nonnull theService,
    CFStreamError * _Nullable error
);

Declaration
From
Boolean CFNetServiceRegisterWithOptions (
    CFNetServiceRef theService,
    CFOptionFlags options,
    CFStreamError *error
);
To
Boolean CFNetServiceRegisterWithOptions (
    CFNetServiceRef _Nonnull theService,
    CFOptionFlags options,
    CFStreamError * _Nullable error
);

Declaration
From
Boolean CFNetServiceResolve (
    CFNetServiceRef theService,
    CFStreamError *error
);
To
Boolean CFNetServiceResolve (
    CFNetServiceRef _Nonnull theService,
    CFStreamError * _Nullable error
);

Declaration
From
Boolean CFNetServiceResolveWithTimeout (
    CFNetServiceRef theService,
    CFTimeInterval timeout,
    CFStreamError *error
);
To
Boolean CFNetServiceResolveWithTimeout (
    CFNetServiceRef _Nonnull theService,
    CFTimeInterval timeout,
    CFStreamError * _Nullable error
);

Declaration
From
void CFNetServiceScheduleWithRunLoop (
    CFNetServiceRef theService,
    CFRunLoopRef runLoop,
    CFStringRef runLoopMode
);
To
void CFNetServiceScheduleWithRunLoop (
    CFNetServiceRef _Nonnull theService,
    CFRunLoopRef _Nonnull runLoop,
    CFStringRef _Nonnull runLoopMode
);

Declaration
From
Boolean CFNetServiceSetClient (
    CFNetServiceRef theService,
    CFNetServiceClientCallBack clientCB,
    CFNetServiceClientContext *clientContext
);
To
Boolean CFNetServiceSetClient (
    CFNetServiceRef _Nonnull theService,
    CFNetServiceClientCallBack _Nullable clientCB,
    CFNetServiceClientContext * _Nullable clientContext
);

Declaration
From
void CFNetServiceSetProtocolSpecificInformation (
    CFNetServiceRef theService,
    CFStringRef theInfo
);
To
void CFNetServiceSetProtocolSpecificInformation (
    CFNetServiceRef _Nonnull theService,
    CFStringRef _Nullable theInfo
);

Declaration
From
Boolean CFNetServiceSetTXTData (
    CFNetServiceRef theService,
    CFDataRef txtRecord
);
To
Boolean CFNetServiceSetTXTData (
    CFNetServiceRef _Nonnull theService,
    CFDataRef _Nonnull txtRecord
);

Declaration
From
void CFNetServiceUnscheduleFromRunLoop (
    CFNetServiceRef theService,
    CFRunLoopRef runLoop,
    CFStringRef runLoopMode
);
To
void CFNetServiceUnscheduleFromRunLoop (
    CFNetServiceRef _Nonnull theService,
    CFRunLoopRef _Nonnull runLoop,
    CFStringRef _Nonnull runLoopMode
);

CFNetworkErrors.h

CFProxySupport.h

Declaration
From
CFArrayRef CFNetworkCopyProxiesForAutoConfigurationScript (
    CFStringRef proxyAutoConfigurationScript,
    CFURLRef targetURL,
    CFErrorRef *error
);
To
CFArrayRef _Nullable CFNetworkCopyProxiesForAutoConfigurationScript (
    CFStringRef _Nonnull proxyAutoConfigurationScript,
    CFURLRef _Nonnull targetURL,
    CFErrorRef  _Nullable * _Nullable error
);

Declaration
From
CFArrayRef CFNetworkCopyProxiesForURL (
    CFURLRef url,
    CFDictionaryRef proxySettings
);
To
CFArrayRef _Nonnull CFNetworkCopyProxiesForURL (
    CFURLRef _Nonnull url,
    CFDictionaryRef _Nonnull proxySettings
);

Declaration
From
CFDictionaryRef CFNetworkCopySystemProxySettings (
    void
);
To
CFDictionaryRef _Nullable CFNetworkCopySystemProxySettings (
    void
);

Declaration
From
CFRunLoopSourceRef CFNetworkExecuteProxyAutoConfigurationScript (
    CFStringRef proxyAutoConfigurationScript,
    CFURLRef targetURL,
    CFProxyAutoConfigurationResultCallback cb,
    CFStreamClientContext *clientContext
);
To
CFRunLoopSourceRef _Nonnull CFNetworkExecuteProxyAutoConfigurationScript (
    CFStringRef _Nonnull proxyAutoConfigurationScript,
    CFURLRef _Nonnull targetURL,
    CFProxyAutoConfigurationResultCallback _Nonnull cb,
    CFStreamClientContext * _Nonnull clientContext
);

Declaration
From
CFRunLoopSourceRef CFNetworkExecuteProxyAutoConfigurationURL (
    CFURLRef proxyAutoConfigURL,
    CFURLRef targetURL,
    CFProxyAutoConfigurationResultCallback cb,
    CFStreamClientContext *clientContext
);
To
CFRunLoopSourceRef _Nonnull CFNetworkExecuteProxyAutoConfigurationURL (
    CFURLRef _Nonnull proxyAutoConfigURL,
    CFURLRef _Nonnull targetURL,
    CFProxyAutoConfigurationResultCallback _Nonnull cb,
    CFStreamClientContext * _Nonnull clientContext
);

CFSocketStream.h

Declaration
From
SInt32 CFSocketStreamSOCKSGetError (
    const CFStreamError *error
);
To
SInt32 CFSocketStreamSOCKSGetError (
    const CFStreamError * _Nonnull error
);

Declaration
From
SInt32 CFSocketStreamSOCKSGetErrorSubdomain (
    const CFStreamError *error
);
To
SInt32 CFSocketStreamSOCKSGetErrorSubdomain (
    const CFStreamError * _Nonnull error
);

Declaration
From
void CFStreamCreatePairWithSocketToCFHost (
    CFAllocatorRef alloc,
    CFHostRef host,
    SInt32 port,
    CFReadStreamRef *readStream,
    CFWriteStreamRef *writeStream
);
To
void CFStreamCreatePairWithSocketToCFHost (
    CFAllocatorRef _Nullable alloc,
    CFHostRef _Nonnull host,
    SInt32 port,
    CFReadStreamRef  _Nullable * _Nullable readStream,
    CFWriteStreamRef  _Nullable * _Nullable writeStream
);

Declaration
From
void CFStreamCreatePairWithSocketToNetService (
    CFAllocatorRef alloc,
    CFNetServiceRef service,
    CFReadStreamRef *readStream,
    CFWriteStreamRef *writeStream
);
To
void CFStreamCreatePairWithSocketToNetService (
    CFAllocatorRef _Nullable alloc,
    CFNetServiceRef _Nonnull service,
    CFReadStreamRef  _Nullable * _Nullable readStream,
    CFWriteStreamRef  _Nullable * _Nullable writeStream
);

Deprecation
From--
ToOS X 10.11