![JAR search and dependency download from the Maven repository](/logo.png)
com.iohao.game.external.client.join.handler.ClientMessageHandler Maven / Gradle / Ivy
/*
* ioGame
* Copyright (C) 2021 - present 渔民小镇 ([email protected]、[email protected]) . All Rights Reserved.
* # iohao.com . 渔民小镇
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see .
*/
package com.iohao.game.external.client.join.handler;
import com.iohao.game.action.skeleton.protocol.BarMessage;
import com.iohao.game.external.client.user.ClientUser;
import com.iohao.game.external.client.user.ClientUserChannel;
import com.iohao.game.external.core.message.ExternalMessage;
import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
/**
* @author 渔民小镇
* @date 2023-05-31
*/
@ChannelHandler.Sharable
public class ClientMessageHandler extends SimpleChannelInboundHandler {
final ClientUserChannel clientUserChannel;
public ClientMessageHandler( ClientUser clientUser) {
this.clientUserChannel = clientUser.getClientUserChannel();
}
@Override
protected void channelRead0(ChannelHandlerContext ctx, BarMessage message) {
clientUserChannel.readMessage(message);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy