mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-02-01 02:14:32 +07:00
Added reliable ChannelHandlers to server ChannelPipeline
This commit is contained in:
parent
fc66d120d7
commit
573f4d1b4b
@ -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())
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user