Modifier and Type | Field and Description |
---|---|
static Class |
BYTE_ARRAY_CLASS |
static int |
HEAD_LEGNTH |
static byte |
SPLITER |
Constructor and Description |
---|
ByteFilter() |
Modifier and Type | Method and Description |
---|---|
Object |
decode(IoSession session,
Object object)
过滤器解密函数,接收事件(onRecive)前调用
如果任何一个过滤器返回的是null, 则它后面的过滤器不会被执行, 且不会执行 onRevcive
|
Object |
encode(IoSession session,
Object object)
过滤器加密函数,发送事件(onSend)前后用
send事件后调用
|
public static final Class BYTE_ARRAY_CLASS
public static final byte SPLITER
public static final int HEAD_LEGNTH
Copyright © 2020 Voovan. All rights reserved.