NIOUDPServer use AddressedEnvelope as InboundIn and OutboundOut (#1666)

This commit is contained in:
Fabian Fett 2020-10-02 18:08:54 +02:00 committed by GitHub
parent bbb0e92702
commit 7c92a3e4d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -14,8 +14,8 @@
import NIO
private final class EchoHandler: ChannelInboundHandler {
public typealias InboundIn = ByteBuffer
public typealias OutboundOut = ByteBuffer
public typealias InboundIn = AddressedEnvelope<ByteBuffer>
public typealias OutboundOut = AddressedEnvelope<ByteBuffer>
public func channelRead(context: ChannelHandlerContext, data: NIOAny) {
// As we are not really interested getting notified on success or failure we just pass nil as promise to