| Constructor and Description |
|---|
CompatibleCodec() |
| Modifier and Type | Method and Description |
|---|---|
Object |
decode(Channel channel,
String remoteIp,
byte[] buffer) |
byte[] |
encode(Channel channel,
Object message) |
public byte[] encode(Channel channel, Object message) throws IOException
encode in interface CodecIOExceptionpublic Object decode(Channel channel, String remoteIp, byte[] buffer) throws IOException
decode in interface CodecremoteIp - 用来在server端decode request时能获取到client的ip。IOExceptionCopyright © 2020. All rights reserved.