---
title: kCFSOCKSVersionKey
framework: cfnetwork
role: symbol
role_heading: Global Variable
path: cfnetwork/kcfsocksversionkey
---

# kCFSOCKSVersionKey

## Declaration

```swift
let kCFSOCKSVersionKey: CFString
```

## Discussion

Discussion If an error of type kCFSOCKSErrorUnsupportedServerVersion is returned, querying this key returns the SOCKS version in use by the current connection.

## See Also

### Constants

- [kCFURLErrorFailingURLErrorKey](cfnetwork/kcfurlerrorfailingurlerrorkey.md)
- [kCFURLErrorFailingURLStringErrorKey](cfnetwork/kcfurlerrorfailingurlstringerrorkey.md)
- [kCFGetAddrInfoFailureKey](cfnetwork/kcfgetaddrinfofailurekey.md)
- [kCFSOCKSStatusCodeKey](cfnetwork/kcfsocksstatuscodekey.md)
- [kCFSOCKSNegotiationMethodKey](cfnetwork/kcfsocksnegotiationmethodkey.md)
- [kCFDNSServiceFailureKey](cfnetwork/kcfdnsservicefailurekey.md)
- [kCFFTPStatusCodeKey](cfnetwork/kcfftpstatuscodekey.md)
