Package io.netty.handler.codec.socks
Class SocksCmdRequest
java.lang.Object
io.netty.handler.codec.socks.SocksMessage
io.netty.handler.codec.socks.SocksRequest
io.netty.handler.codec.socks.SocksCmdRequest
An socks cmd request.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SocksAddressType
private final SocksCmdType
private final String
private final int
-
Constructor Summary
ConstructorsConstructorDescriptionSocksCmdRequest
(SocksCmdType cmdType, SocksAddressType addressType, String host, int port) -
Method Summary
Modifier and TypeMethodDescriptionReturns theSocksAddressType
of thisSocksCmdRequest
cmdType()
Returns theSocksCmdType
of thisSocksCmdRequest
void
encodeAsByteBuf
(ByteBuf byteBuf) host()
Returns host that is used as a parameter inSocksCmdType
int
port()
Returns port that is used as a parameter inSocksCmdType
Methods inherited from class io.netty.handler.codec.socks.SocksRequest
requestType
Methods inherited from class io.netty.handler.codec.socks.SocksMessage
protocolVersion, type
-
Field Details
-
cmdType
-
addressType
-
host
-
port
private final int port
-
-
Constructor Details
-
SocksCmdRequest
-
-
Method Details
-
cmdType
Returns theSocksCmdType
of thisSocksCmdRequest
- Returns:
- The
SocksCmdType
of thisSocksCmdRequest
-
addressType
Returns theSocksAddressType
of thisSocksCmdRequest
- Returns:
- The
SocksAddressType
of thisSocksCmdRequest
-
host
Returns host that is used as a parameter inSocksCmdType
- Returns:
- host that is used as a parameter in
SocksCmdType
-
port
public int port()Returns port that is used as a parameter inSocksCmdType
- Returns:
- port that is used as a parameter in
SocksCmdType
-
encodeAsByteBuf
- Specified by:
encodeAsByteBuf
in classSocksMessage
-