Contents

kCFStreamPropertySOCKSProxy

SOCKS proxy property key.

Declaration

let kCFStreamPropertySOCKSProxy: CFString

Discussion

To set a CFStream object to use a SOCKS proxy, call CFReadStreamSetProperty(_:_:_:) or CFWriteStreamSetProperty(_:_:_:) with the property name set to kCFStreamPropertySOCKSProxy and its value set to a CFDictionary object having at minimum a kCFStreamPropertySOCKSProxyHost key and a kCFStreamPropertySOCKSProxyPort key. For information on these keys, see CFStream SOCKS Proxy Key Constants. SystemConfiguration returns a CFDictionary for SOCKS proxies that is usable without modification.

See Also

Constants