---
title: SSLConnectionType
framework: security
role: symbol
role_heading: Enumeration
path: security/sslconnectiontype
---

# SSLConnectionType

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

## Declaration

```swift
enum SSLConnectionType
```

## Overview

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

## Topics

### Constants

- [SSLConnectionType.streamType](security/sslconnectiontype/streamtype.md)
- [SSLConnectionType.datagramType](security/sslconnectiontype/datagramtype.md)

### Initializers

- [init(rawValue:)](security/sslconnectiontype/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
