public final class SocksCmdRequest extends SocksRequest
SocksCmdResponse
,
SocksCmdRequestDecoder
Modifier and Type | Field and Description |
---|---|
private SocksAddressType |
addressType |
private SocksCmdType |
cmdType |
private java.lang.String |
host |
private int |
port |
Constructor and Description |
---|
SocksCmdRequest(SocksCmdType cmdType,
SocksAddressType addressType,
java.lang.String host,
int port) |
Modifier and Type | Method and Description |
---|---|
SocksAddressType |
addressType()
Returns the
SocksAddressType of this SocksCmdRequest |
SocksCmdType |
cmdType()
Returns the
SocksCmdType of this SocksCmdRequest |
void |
encodeAsByteBuf(ByteBuf byteBuf) |
java.lang.String |
host()
Returns host that is used as a parameter in
SocksCmdType |
int |
port()
Returns port that is used as a parameter in
SocksCmdType |
requestType
protocolVersion, type
private final SocksCmdType cmdType
private final SocksAddressType addressType
private final java.lang.String host
private final int port
public SocksCmdRequest(SocksCmdType cmdType, SocksAddressType addressType, java.lang.String host, int port)
public SocksCmdType cmdType()
SocksCmdType
of this SocksCmdRequest
SocksCmdType
of this SocksCmdRequest
public SocksAddressType addressType()
SocksAddressType
of this SocksCmdRequest
SocksAddressType
of this SocksCmdRequest
public java.lang.String host()
SocksCmdType
SocksCmdType
public int port()
SocksCmdType
SocksCmdType
public void encodeAsByteBuf(ByteBuf byteBuf)
encodeAsByteBuf
in class SocksMessage