wuzeyu
2024-11-27 e2c28bc98587c6edd6a38f06b972ff51d998028f
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) ;
    
}