app/src/main/java/com/anyun/h264/JT1076TcpClient.java
@@ -2,6 +2,8 @@ import android.util.Log; import com.anyun.h264.util.BytesUtils; import io.netty.bootstrap.Bootstrap; import io.netty.buffer.ByteBuf; import io.netty.buffer.Unpooled; @@ -140,7 +142,8 @@ try { // 将字节数组包装为ByteBuf ByteBuf buffer = Unpooled.wrappedBuffer(packet); String str = BytesUtils.bytesToHexString( BytesUtils.subArray(buffer.array(),0,30)); Log.i(TAG, "Send TCP packet:"+ str); // 异步写入 ChannelFuture future = channel.writeAndFlush(buffer);