mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-18 09:54:59 +01:00
Renamed all references to a certain game
This commit is contained in:
@@ -8,7 +8,7 @@ import io.netty.buffer.Unpooled;
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
import io.netty.channel.ChannelInboundHandlerAdapter;
|
||||
|
||||
public abstract class MihoyoKcpChannel extends ChannelInboundHandlerAdapter {
|
||||
public abstract class KcpChannel extends ChannelInboundHandlerAdapter {
|
||||
private UkcpChannel kcpChannel;
|
||||
private ChannelHandlerContext ctx;
|
||||
private boolean isActive;
|
||||
@@ -10,9 +10,9 @@ import io.netty.channel.ChannelMetadata;
|
||||
import io.netty.channel.ChannelOutboundBuffer;
|
||||
import io.netty.channel.nio.AbstractNioMessageChannel;
|
||||
|
||||
public class MihoyoKcpHandshaker extends AbstractNioMessageChannel {
|
||||
public class KcpHandshaker extends AbstractNioMessageChannel {
|
||||
|
||||
protected MihoyoKcpHandshaker(Channel parent, SelectableChannel ch, int readInterestOp) {
|
||||
protected KcpHandshaker(Channel parent, SelectableChannel ch, int readInterestOp) {
|
||||
super(parent, ch, readInterestOp);
|
||||
}
|
||||
|
||||
@@ -13,14 +13,14 @@ import io.netty.channel.EventLoopGroup;
|
||||
import io.netty.channel.nio.NioEventLoopGroup;
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
public class MihoyoKcpServer extends Thread {
|
||||
public class KcpServer extends Thread {
|
||||
private EventLoopGroup group;
|
||||
private UkcpServerBootstrap bootstrap;
|
||||
|
||||
private ChannelInitializer serverInitializer;
|
||||
private InetSocketAddress address;
|
||||
|
||||
public MihoyoKcpServer(InetSocketAddress address) {
|
||||
public KcpServer(InetSocketAddress address) {
|
||||
this.address = address;
|
||||
this.setName("Netty Server Thread");
|
||||
}
|
||||
@@ -40,7 +40,7 @@ public class MihoyoKcpServer extends Thread {
|
||||
@Override
|
||||
public void run() {
|
||||
if (getServerInitializer() == null) {
|
||||
this.setServerInitializer(new MihoyoKcpServerInitializer());
|
||||
this.setServerInitializer(new KcpServerInitializer());
|
||||
}
|
||||
|
||||
try {
|
||||
@@ -5,7 +5,7 @@ import io.netty.channel.ChannelInitializer;
|
||||
import io.netty.channel.ChannelPipeline;
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
public class MihoyoKcpServerInitializer extends ChannelInitializer<UkcpChannel> {
|
||||
public class KcpServerInitializer extends ChannelInitializer<UkcpChannel> {
|
||||
|
||||
@Override
|
||||
protected void initChannel(UkcpChannel ch) throws Exception {
|
||||
Reference in New Issue
Block a user