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