| | |
| | | import com.anyun.im_lib.interf.IMSClientInteface; |
| | | import com.anyun.im_lib.listener.IMSConnectStatusCallback; |
| | | import com.anyun.im_lib.listener.OnEventListener; |
| | | import com.anyun.im_lib.util.ByteUtil; |
| | | |
| | | import java.nio.ByteBuffer; |
| | | import java.util.Vector; |
| | |
| | | try { |
| | | ByteBuf byteBuf = ByteBufAllocator.DEFAULT.ioBuffer(); |
| | | byteBuf.writeBytes(mOnEventListener.getRegisterMessage()); |
| | | Log.i(TAG, "发送消息: "+ ByteUtil.byte2HexStr(mOnEventListener.getRegisterMessage())); |
| | | channel.writeAndFlush(byteBuf); |
| | | } catch (Exception e) { |
| | | Log.i(TAG, "发送消息失败,reason="+e.getMessage()+"\t"); |