---
title: TLV
framework: network
role: symbol
role_heading: Structure
path: network/tlv
---

# TLV

A Type-Length-Value (TLV) framing protocol.

## Declaration

```swift
struct TLV
```

## Overview

Overview This protocol will infer the length of the data based on the content passed to it in send. Supports sending and receiving messages.

## Topics

### Initializers

- [init(_:)](network/tlv/init(_:)-8ka4w.md)
- [init(_:)](network/tlv/init(_:)-8qsbh.md)
- [init(type:length:_:)](network/tlv/init(type:length:_:)-7awe.md)
- [init(type:length:_:)](network/tlv/init(type:length:_:)-h8s.md)

## Relationships

### Conforms To

- [MessageProtocol](network/messageprotocol.md)
- [NetworkProtocolOptions](network/networkprotocoloptions.md)
- [OneToOneProtocol](network/onetooneprotocol.md)
