public byte[] encode(Channel channel, Object message) throws IOException
encode 在接口中 CodecIOExceptionpublic Object decode(Channel channel, String remoteIp, byte[] buffer) throws IOException
decode 在接口中 CodecremoteIp - 用来在server端decode request时能获取到client的ip。IOExceptionCopyright © 2023. All rights reserved.