---
title: "init(receiving:sending:using:_:)"
framework: network
role: symbol
role_heading: Initializer
path: "network/coder/init(receiving:sending:using:_:)-7d2qd"
---

# init(receiving:sending:using:_:)

Create a Coder protocol

## Declaration

```swift
init<BelowProtocol>(receiving: Receiving.Type, sending: Sending.Type, using: CoderType, @ProtocolStackBuilder<BelowProtocol> _ builder: () -> BelowProtocol) where BelowProtocol : DatagramProtocol
```

## Parameters

- `receiving`: The Codable type that will be received.
- `sending`: The Codable type that will be sent.
- `using`: The NetworkCoder that will be used to encode and decode.
- `builder`: The protocol stack below Coder.
