init(sending:receiving:using:_:)
Create a Coder protocol.
Declaration
init<BelowProtocol>(sending: Sending.Type, receiving: Receiving.Type, using: CoderType, @ProtocolStackBuilder<BelowProtocol> _ builder: () -> BelowProtocol) where BelowProtocol : DatagramProtocolParameters
- sending:
The Codable type that will be sent.
- receiving:
The Codable type that will be received.
- using:
The NetworkCoder that will be used to encode and decode.
- builder:
The protocol stack below Coder.