endian11
2019-12-18 516bfa1d3919e2236aba5c07348b2bd1234ed94f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package com.anyun.im_lib;
 
import android.util.Log;
 
import com.anyun.im_lib.interf.IMSClientInteface;
 
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;
 
/**
 * MyApplication2
 * 设备鉴权
 * Created by lzw on 2019/12/4. 11:25:33
 * 邮箱:632393724@qq.com
 * All Rights Saved! Chongqing AnYun Tech co. LTD
 */
public class LoginAuthRespHandler extends  ChannelInboundHandlerAdapter {
    
    private static final String TAG = LoginAuthRespHandler.class.getSimpleName();
    private IMSClientInteface imsClient;
 
    @Override
    public void channelActive(ChannelHandlerContext ctx) throws Exception {
        super.channelActive(ctx);
        Log.i(TAG, "channelActive: ");
 
    }
 
    /**
     * 构造函数
     * @param imsClient
     */
    public LoginAuthRespHandler(IMSClientInteface imsClient) {
        this.imsClient = imsClient;
    }
 
    @Override
    public void channelReadComplete(ChannelHandlerContext ctx) throws Exception {
        super.channelReadComplete(ctx);
        Log.i(TAG, "channelReadComplete");
    }
 
    @Override
    public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
        super.channelRead(ctx, msg);
//        Log.i(TAG, "channelRead"+(String)msg);
        // TODO: 2019/12/4  
    }
}