liurunyu
2025-08-18 9440721414f31d1c85094be1a035d9a90f9c4d5a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.dy.common.mw.channel.tcp;
 
import org.apache.mina.core.buffer.IoBuffer;
import org.apache.mina.core.session.IoSession;
 
public interface PrefixedDataAvailableHandle {
 
    /**
     * 预处理上线数据
     * @param in IoBuffer
     * @return 状态
     */
    PrefixedDataAvailableStatus forOnLine(IoSession ioSession,  IoBuffer in) ;
    
    /**
     * 预处理上行数据
     * @param in IoBuffer
     * @return 状态
     */
    PrefixedDataAvailableStatus forUpData(IoSession ioSession, IoBuffer in) ;
    
}