---
title: "init(framer:)"
framework: network
role: symbol
role_heading: Initializer
path: "network/nwprotocolframerimplementation/init(framer:)"
---

# init(framer:)

Initializes your custom framing protocol for use in one connection attempt.

## Declaration

```swift
init(framer: NWProtocolFramer.Instance)
```

## See Also

### Handling Instance Lifetime

- [start(framer:)](network/nwprotocolframerimplementation/start(framer:).md)
- [NWProtocolFramer.StartResult](network/nwprotocolframer/startresult.md)
- [wakeup(framer:)](network/nwprotocolframerimplementation/wakeup(framer:).md)
- [stop(framer:)](network/nwprotocolframerimplementation/stop(framer:).md)
- [cleanup(framer:)](network/nwprotocolframerimplementation/cleanup(framer:).md)
- [label](network/nwprotocolframerimplementation/label.md)
