com.github.netty.protocol.mysql.client.ClientConnectionDecoder Maven / Gradle / Ivy
The newest version!
package com.github.netty.protocol.mysql.client;
import com.github.netty.protocol.mysql.*;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.DecoderException;
import java.nio.charset.Charset;
import java.util.EnumSet;
import java.util.List;
/**
* @author Administrator
*/
public class ClientConnectionDecoder extends AbstractPacketDecoder implements ClientDecoder {
private Session session;
public ClientConnectionDecoder(Session session, int maxPacketSize) {
super(maxPacketSize);
this.session = session;
}
@Override
protected void decodePacket(ChannelHandlerContext ctx, int sequenceId, ByteBuf packet, List