public final class io.netty.handler.codec.socksx.v.Socks4ServerEncoder extends io.netty.handler.codec.MessageToByteEncoder
{
public static final io.netty.handler.codec.socksx.v.Socks4ServerEncoder INSTANCE;
private static final byte[] IPv4_HOSTNAME_ZEROED;
private void <init>()
{
io.netty.handler.codec.socksx.v.Socks4ServerEncoder v;
v := @this: io.netty.handler.codec.socksx.v.Socks4ServerEncoder;
specialinvoke v.<io.netty.handler.codec.MessageToByteEncoder: void <init>()>();
return;
}
protected void encode(io.netty.channel.ChannelHandlerContext, io.netty.handler.codec.socksx.v.Socks4CommandResponse, io.netty.buffer.ByteBuf) throws java.lang.Exception
{
byte[] v;
io.netty.handler.codec.socksx.v.Socks4CommandStatus v;
io.netty.handler.codec.socksx.v.Socks4CommandResponse v;
io.netty.channel.ChannelHandlerContext v;
byte v;
io.netty.buffer.ByteBuf v;
int v;
io.netty.handler.codec.socksx.v.Socks4ServerEncoder v;
java.lang.String v, v;
v := @this: io.netty.handler.codec.socksx.v.Socks4ServerEncoder;
v := @parameter: io.netty.channel.ChannelHandlerContext;
v := @parameter: io.netty.handler.codec.socksx.v.Socks4CommandResponse;
v := @parameter: io.netty.buffer.ByteBuf;
virtualinvoke v.<io.netty.buffer.ByteBuf: io.netty.buffer.ByteBuf writeByte(int)>(0);
v = interfaceinvoke v.<io.netty.handler.codec.socksx.v.Socks4CommandResponse: io.netty.handler.codec.socksx.v.Socks4CommandStatus status()>();
v = virtualinvoke v.<io.netty.handler.codec.socksx.v.Socks4CommandStatus: byte byteValue()>();
virtualinvoke v.<io.netty.buffer.ByteBuf: io.netty.buffer.ByteBuf writeByte(int)>(v);
v = interfaceinvoke v.<io.netty.handler.codec.socksx.v.Socks4CommandResponse: int dstPort()>();
virtualinvoke v.<io.netty.buffer.ByteBuf: io.netty.buffer.ByteBuf writeShort(int)>(v);
v = interfaceinvoke v.<io.netty.handler.codec.socksx.v.Socks4CommandResponse: java.lang.String dstAddr()>();
if v != null goto label;
v = <io.netty.handler.codec.socksx.v.Socks4ServerEncoder: byte[] IPv4_HOSTNAME_ZEROED>;
goto label;
label:
v = interfaceinvoke v.<io.netty.handler.codec.socksx.v.Socks4CommandResponse: java.lang.String dstAddr()>();
v = staticinvoke <io.netty.util.NetUtil: byte[] createByteArrayFromIpAddressString(java.lang.String)>(v);
label:
virtualinvoke v.<io.netty.buffer.ByteBuf: io.netty.buffer.ByteBuf writeBytes(byte[])>(v);
return;
}
static void <clinit>()
{
byte[] v;
io.netty.handler.codec.socksx.v.Socks4ServerEncoder v;
v = new io.netty.handler.codec.socksx.v.Socks4ServerEncoder;
specialinvoke v.<io.netty.handler.codec.socksx.v.Socks4ServerEncoder: void <init>()>();
<io.netty.handler.codec.socksx.v.Socks4ServerEncoder: io.netty.handler.codec.socksx.v.Socks4ServerEncoder INSTANCE> = v;
v = newarray (byte)[4];
v[0] = 0;
v[1] = 0;
v[2] = 0;
v[3] = 0;
<io.netty.handler.codec.socksx.v.Socks4ServerEncoder: byte[] IPv4_HOSTNAME_ZEROED> = v;
return;
}
}