Global Variable

kCFStreamErrorDomainSOCKS

The error code is a SOCKS proxy error.

Declaration

const int kCFStreamErrorDomainSOCKS;

See Also

Streams

CFReadStreamCreateForHTTPRequest

Creates a read stream for a CFHTTP request message.

Deprecated
CFReadStreamCreateForStreamedHTTPRequest

Creates a read stream for a CFHTTP request message object whose body is too long to keep in memory.

Deprecated
kCFStreamPropertyHTTPFinalRequest

HTTP Final Request property. A value of type CFHTTPMessage containing the final message transmitted by the stream after all modifications (including authentication, connection policy, redirects, and so on) have been made. This property cannot be set.

Deprecated
kCFStreamPropertyHTTPFinalURL

HTTP Final URL property. A value of type CFURL containing the final HTTP URL. This value differs from the URL in the original HTTP request if an autoredirection occurred. This property cannot be set.

Deprecated
kCFStreamPropertyHTTPResponseHeader

HTTP Response Header property. When copied by CFReadStreamCopyProperty, the header of an HTTP response message is returned.

Deprecated
kCFStreamPropertyHTTPShouldAutoredirect

HTTP Should Auto Redirect property. Set this property to kCFBooleanTrue to enable autoredirection; set this property to kCFBooleanFalse to disable autoredirection.

Deprecated
CFWriteStreamCreateWithFTPURL

Creates an FTP write stream.

Deprecated
CFReadStreamCreateWithFTPURL

Creates an FTP read stream.

Deprecated
kCFStreamPropertyFTPFileTransferOffset

FTP File Transfer Offset stream property key for set and copy operations. The value of this property is a CFNumber of type kCFNumberLongLongType representing the file offset at which to start the transfer.

Deprecated
kCFStreamPropertyFTPPassword

FTP Password stream property key for set and copy operations. A value of type CFString for storing the login password. Don’t set this property when anonymous FTP is desired.

Deprecated
kCFStreamPropertyFTPProxy

FTP Proxy stream property key for set and copy operations. The property is a value of type CFDictionary that holds proxy dictionary key-value pairs. The dictionary returned by SystemConfiguration can also be set as the value of this property.

Deprecated
kCFStreamPropertyFTPResourceSize

FTP Resource Size read stream property key copy operations. This property stores a CFNumber of type kCFNumberLongLongType representing the size of a resource in bytes.

Deprecated
kCFStreamPropertyFTPUsePassiveMode

FTP Passive Mode stream property key for set and copy operations. Set this property to kCFBooleanTrue to enable passive mode; set this property to kCFBooleanFalse to disable passive mode.

Deprecated
kCFStreamPropertyFTPUserName

FTP User Name stream property key for set and copy operations. A value of type CFString for storing the login user name. Don’t set this property when anonymous FTP is desired.

Deprecated
CFSocketStreamSOCKSGetError

This function gets error codes in the kCFStreamErrorDomainSOCKS domain from the CFStreamError returned by a stream operation.

CFSocketStreamSOCKSGetErrorSubdomain

Gets the error subdomain associated with errors in the kCFStreamErrorDomainSOCKS domain from the CFStreamError returned by a stream operation.

CFStreamCreatePairWithSocketToCFHost

Creates readable and writable streams connected to a given CFHost object.

CFStreamCreatePairWithSocketToNetService

Creates a pair of streams for a CFNetService.

kCFStreamNetworkServiceType

The type of service for the stream. Providing the service type allows the system to properly handle certain attributes of the stream, including routing and suspension behavior. Most streams do not need to set this property. See Stream Service Types for a list of possible values.

kCFStreamNetworkServiceTypeBackground

Specifies that the stream is a background download.

kCFStreamNetworkServiceTypeVideo

Specifies that the stream is providing interactive video data.

kCFStreamNetworkServiceTypeVoIP

Specifies that the stream is providing VoIP service.

Deprecated
kCFStreamNetworkServiceTypeVoice

Specifies that the stream is providing interactive voice data.

kCFStreamErrorDomainFTP

The error code is an FTP error code.

kCFStreamErrorDomainHTTP

The error code is an HTTP error code.

kCFStreamErrorDomainMach

The error code is a Mach error code defined in mach/error.h.

kCFStreamErrorDomainNetDB

The error code is an error code defined in netdb.h.

kCFStreamErrorDomainNetServices

The error code is a CFNetService error code. For details, see the CFNetServicesError enumeration.

kCFStreamErrorDomainSSL

The error code is an SSL error code as defined in Security/SecureTransport.h.

kCFStreamErrorDomainSystemConfiguration

The error code is a system configuration error code as defined in System/ConfigurationSystemConfiguration.h.

kCFStreamErrorDomainWinSock

When running CFNetwork code on Windows, this domain returns error codes associated with the underlying TCP/IP stack. You should also note that non-networking errors such as ENOMEM are delivered through the POSIX domain. See the header winsock2.h for relevant error codes.

kCFStreamPropertyConnectionIsCellular

A boolean value indicating whether the stream is connected over a cellular (WWAN) interface. This is a read-only property, and is false until the connection has been established.

kCFStreamPropertyNoCellular

A Boolean value indicating that the connection should not be established over a cellular (WWAN) connection. This value can only be set before you open the stream.

kCFStreamPropertyProxyLocalBypass

Proxy Local Bypass property key.

kCFStreamPropertySOCKSPassword

Constant for the key required to set a user’s password.

kCFStreamPropertySOCKSProxy

SOCKS proxy property key.

kCFStreamPropertySOCKSProxyHost

Constant for the SOCKS proxy host key.

kCFStreamPropertySOCKSProxyPort

Constant for the SOCKS proxy host port key.

kCFStreamPropertySOCKSUser

Constant for the key required to set a user name.

kCFStreamPropertySOCKSVersion

Constant for the SOCKS version key.

kCFStreamPropertySSLPeerCertificates

SSL Peer Certificates property key for copy operations, which return a CFArray object containing SecCertificateRef objects.

Deprecated
kCFStreamPropertySSLPeerTrust

SSL Peer Trust property key for copy operations, which return a SecTrustRef object containing the result of the SSL handshake.

kCFStreamPropertySSLSettings

SSL Settings property key for set operations.

kCFStreamPropertyShouldCloseNativeSocket

Should Close Native Socket property key.

kCFStreamPropertySocketRemoteHost

The key’s value is a CFHostRef for the remote host if it is known. If not, its value is NULL.

kCFStreamPropertySocketRemoteNetService

The key’s value is a CFNetServiceRef for the remote network service if it is known. If not, its value is NULL.

kCFStreamPropertySocketSecurityLevel

Socket Security Level property key.

kCFStreamSSLAllowsAnyRoot

Security property key whose value indicates whether root certificates should be allowed.

Deprecated
kCFStreamSSLAllowsExpiredCertificates

Security property key whose value indicates whether expired certificates are allowed.

Deprecated
kCFStreamSSLAllowsExpiredRoots

Security property whose value indicates whether expired root certificates are allowed.

Deprecated
kCFStreamSSLCertificates

Security property key whose value is a CFArray of SecCertificateRefs except for the first element in the array, which is a SecIdentityRef.

kCFStreamSSLIsServer

Security property key whose value indicates whether the connection is to act as a server in the SSL process.

kCFStreamSSLLevel

Security property key whose value specifies the stream’s security level.

kCFStreamSSLPeerName

Security property key whose value overrides the name used for certificate verification.

kCFStreamSSLValidatesCertificateChain

Security property key whose value indicates whether the certificate chain should be validated.

kCFStreamSocketSOCKSVersion4

Constant used in the kCFStreamSockerSOCKSVersion key to specify SOCKS4 as the SOCKS version for the stream.

kCFStreamSocketSOCKSVersion5

Constant used in the kCFStreamSOCKSVersion key to specify SOCKS5 as the SOCKS version for the stream.

kCFStreamSocketSecurityLevelNegotiatedSSL

Specifies that the highest level security protocol that can be negotiated be set as the security protocol for a socket stream.

kCFStreamSocketSecurityLevelNone

Specifies that no security level be set.

kCFStreamSocketSecurityLevelSSLv2

Specifies that SSL version 2 be set as the security protocol for a socket stream.

Deprecated
kCFStreamSocketSecurityLevelSSLv3

Specifies that SSL version 3 be set as the security protocol for a socket stream pair.

Deprecated
kCFStreamSocketSecurityLevelTLSv1

Specifies that TLS version 1 be set as the security protocol for a socket stream.

CFStreamErrorHTTP

Error codes that a read stream for an HTTP request may return.

CFStreamErrorHTTPAuthentication

Authentication error codes that may be returned when trying to apply authentication to a request.

Secure Sockets (SOCKS) Errors

Error codes returned by the kCFStreamErrorDomainSOCKS error domain.