com.envisioniot.sub.client.internal.netty.ClientEncoder Maven / Gradle / Ivy
package com.envisioniot.sub.client.internal.netty;
import com.envisioniot.sub.common.generated.Common;
import com.envisioniot.sub.common.model.Pair;
import com.envisioniot.sub.common.netty.RegManager;
import com.envisioniot.sub.common.netty.TransferVer;
import com.google.protobuf.ByteString;
import com.google.protobuf.CodedOutputStream;
import com.google.protobuf.MessageLite;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.ByteBufOutputStream;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.MessageToByteEncoder;
import org.apache.log4j.Logger;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.zip.GZIPOutputStream;
import static io.netty.buffer.Unpooled.wrappedBuffer;
/**
*/
public class ClientEncoder extends MessageToByteEncoder