CFStream

This document describes the generic CFStream functions, data types, and constants. See also CFReadStream and CFWriteStream for functions and constants specific to read and write streams respectively.

Overview

Symbols

Obtaining Errors

func CFSocketStreamSOCKSGetError(UnsafePointer<CFStreamError>)

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

func CFSocketStreamSOCKSGetErrorSubdomain(UnsafePointer<CFStreamError>)

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

Data Types

CFStreamClientContext

A structure that contains program-defined data and callbacks with which you can configure a stream’s client behavior.

Constants

CFStreamStatus

Constants that describe the status of a stream.

CFStreamErrorDomain

Defines constants for values returned in the domain field of the CFStreamError structure.

CFStream Error Domain Constants (CFHost)

Defines constants for values returned in the domain field of the CFStreamError structure.

CFStream Errors

Error codes returned by the kCFStreamErrorDomainSOCKS error domain.

CFStreamEventType

Defines constants for stream-related events.

Stream Properties

Stream property names that can be set or copied.

CFStream Property SSL Settings Constants

Constants for use in a CFDictionary object that is the value of the kCFStreamPropertySSLSettings stream property key.

CFStream Socket Security Level Constants

Constants for setting the security level of a socket stream.

CFStream SOCKS Proxy Key Constants

Constants for SOCKS Proxy CFDictionary keys.

Stream Service Types

String constants that specify the service type of a stream.