CFStream

This document describes the generic CFStream functions, data types, and constants. See also CFRead​Stream and CFWrite​Stream for functions and constants specific to read and write streams respectively.

Overview

Symbols

Creating Streams

Obtaining Errors

func CFSocket​Stream​SOCKSGet​Error(Unsafe​Pointer<CFStream​Error>)

This function gets error codes in the k​CFStream​Error​Domain​SOCKS domain from the CFStream​Error returned by a stream operation.

func CFSocket​Stream​SOCKSGet​Error​Subdomain(Unsafe​Pointer<CFStream​Error>)

Gets the error subdomain associated with errors in the k​CFStream​Error​Domain​SOCKS domain from the CFStream​Error returned by a stream operation.

Data Types

CFStream​Client​Context

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

Constants

CFStream​Status

Constants that describe the status of a stream.

CFStream​Error​Domain

Defines constants for values returned in the domain field of the CFStream​Error structure.

CFStream Error Domain Constants (CFHost)

Defines constants for values returned in the domain field of the CFStream​Error structure.

Secure Sockets (SOCKS) Errors

Error codes returned by the k​CFStream​Error​Domain​SOCKS error domain.

CFStream​Event​Type

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 k​CFStream​Property​SSLSettings 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.