Added reliable ChannelHandlers to server ChannelPipeline

This commit is contained in:
Collin Smith 2020-06-17 21:56:00 -07:00
parent fc66d120d7
commit 573f4d1b4b

View File

@ -77,6 +77,7 @@ public class Main extends ApplicationAdapter {
@Override @Override
protected void initChannel(DatagramChannel ch) { protected void initChannel(DatagramChannel ch) {
ch.pipeline() ch.pipeline()
.addLast(new ReliableInboundHandler())
.addLast(new PacketHandler() { .addLast(new PacketHandler() {
final String TAG = "PacketHandler$1"; final String TAG = "PacketHandler$1";
@ -109,6 +110,7 @@ public class Main extends ApplicationAdapter {
} }
} }
}) })
.addLast(new ReliableOutboundHandler())
; ;
} }
}) })