<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreFoundation",
  "identifier" : "/documentation/CoreFoundation/CFSocketError",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Core Foundation"
    ],
    "preciseIdentifier" : "c:@E@CFSocketError"
  },
  "title" : "CFSocketError"
}
-->

# CFSocketError

Error codes for many CFSocket functions.

```
enum CFSocketError
```

## Topics

### Constants

[`CFSocketError.success`](/documentation/CoreFoundation/CFSocketError/success)

The socket operation succeeded.

[`CFSocketError.error`](/documentation/CoreFoundation/CFSocketError/error)

The socket operation failed.

[`CFSocketError.timeout`](/documentation/CoreFoundation/CFSocketError/timeout)

The socket operation timed out.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)