Contents

Secure Sockets (SOCKS) Errors

Error codes returned by the kCFStreamErrorDomainSOCKS error domain.

Overview

Error codes in the kCFStreamErrorDomainSOCKS domain can come from multiple parts of the protocol stack, many of which define their own error values as part of outside specifications such as the HTTP specification.

To avoid confusion from conflicting error numbers, error codes in the kCFStreamErrorDomainSOCKS domain contain two parts: a subdomain, which tells which part of the protocol stack generated the error, and the error code itself.

Calling CFSocketStreamSOCKSGetErrorSubdomain(_:) returns an identifier that tells which layer of the protocol stack produced the error.

Calling CFSocketStreamSOCKSGetError(_:) returns the actual error code that the subdomain describes. This list of constants contains the possible values that this function will return. They must be interpreted within the context of the relevant error subdomain.

Topics

Constants

See Also

Streams