<!--
{
  "availability" : [
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Security",
  "identifier" : "/documentation/Security/SSLConnectionType",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Security"
    ],
    "preciseIdentifier" : "c:@E@SSLConnectionType"
  },
  "title" : "SSLConnectionType"
}
-->

# SSLConnectionType

The flags that indicate whether a context is to be used for streaming or datagram-based communication.

```
enum SSLConnectionType
```

## Overview

Use one of these flags with the [`SSLCreateContext(_:_:_:)`](/documentation/Security/SSLCreateContext(_:_:_:)) function to indicate whether the context is intended for use in stream-based or datagram-based communication.

## Topics

### Constants

[`SSLConnectionType.streamType`](/documentation/Security/SSLConnectionType/streamType)

Stream-based communication (TCP).

[`SSLConnectionType.datagramType`](/documentation/Security/SSLConnectionType/datagramType)

Datagram-based communication (UDP).



---

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)