---
title: NWProtocolFramer
framework: network
role: symbol
role_heading: Class
path: network/nwprotocolframer
---

# NWProtocolFramer

A customizable network protocol for defining application message parsers.

## Declaration

```swift
class NWProtocolFramer
```

## Topics

### Implementing Framer Protocols

- [NWProtocolFramerImplementation](network/nwprotocolframerimplementation.md)
- [NWProtocolFramer.Instance](network/nwprotocolframer/instance.md)

### Using Framers with Connections

- [NWProtocolFramer.Definition](network/nwprotocolframer/definition.md)
- [NWProtocolFramer.Options](network/nwprotocolframer/options.md)
- [NWProtocolFramer.Message](network/nwprotocolframer/message.md)

### Enumerations

- [NWProtocolFramer.StartResult](network/nwprotocolframer/startresult.md)

## Relationships

### Inherits From

- [NWProtocol](network/nwprotocol.md)

### Conforms To

- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Network Protocols

- [Building a custom peer-to-peer protocol](network/building-a-custom-peer-to-peer-protocol.md)
- [Connecting iPadOS and visionOS apps over the local network](visionos/connecting-ipados-and-visionos-apps-over-the-local-network.md)
- [NWProtocolTCP](network/nwprotocoltcp.md)
- [NWProtocolTLS](network/nwprotocoltls.md)
- [NWProtocolQUIC](network/nwprotocolquic.md)
- [NWProtocolUDP](network/nwprotocoludp.md)
- [NWProtocolIP](network/nwprotocolip.md)
- [NWProtocolWebSocket](network/nwprotocolwebsocket.md)
