---
title: kCFStreamPropertySOCKSProxy
framework: corefoundation
role: symbol
role_heading: Global Variable
path: corefoundation/kcfstreampropertysocksproxy
---

# kCFStreamPropertySOCKSProxy

SOCKS proxy property key.

## Declaration

```swift
let kCFStreamPropertySOCKSProxy: CFString
```

## Discussion

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

- [appendToFile](corefoundation/cfstreampropertykey/appendtofile.md)
- [dataWritten](corefoundation/cfstreampropertykey/datawritten.md)
- [fileCurrentOffset](corefoundation/cfstreampropertykey/filecurrentoffset.md)
- [socketNativeHandle](corefoundation/cfstreampropertykey/socketnativehandle.md)
- [socketRemoteHostName](corefoundation/cfstreampropertykey/socketremotehostname.md)
- [socketRemotePortNumber](corefoundation/cfstreampropertykey/socketremoteportnumber.md)
- [kCFStreamPropertyShouldCloseNativeSocket](corefoundation/kcfstreampropertyshouldclosenativesocket.md)
- [kCFStreamPropertySocketSecurityLevel](corefoundation/kcfstreampropertysocketsecuritylevel.md)
- [kCFStreamPropertySSLPeerCertificates](cfnetwork/kcfstreampropertysslpeercertificates.md)
- [kCFStreamPropertySSLPeerTrust](cfnetwork/kcfstreampropertysslpeertrust.md)
- [kCFStreamPropertySSLSettings](cfnetwork/kcfstreampropertysslsettings.md)
- [kCFStreamPropertySSLContext](cfnetwork/kcfstreampropertysslcontext.md)
- [kCFStreamPropertyProxyLocalBypass](cfnetwork/kcfstreampropertyproxylocalbypass.md)
- [kCFStreamPropertySocketRemoteHost](cfnetwork/kcfstreampropertysocketremotehost.md)
- [kCFStreamPropertySocketRemoteNetService](cfnetwork/kcfstreampropertysocketremotenetservice.md)
