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 SocksAddressTypeprivate final SocksCmdTypeprivate final Stringprivate final int -
Constructor Summary
ConstructorsConstructorDescriptionSocksCmdRequest(SocksCmdType cmdType, SocksAddressType addressType, String host, int port) -
Method Summary
Modifier and TypeMethodDescriptionReturns theSocksAddressTypeof thisSocksCmdRequestcmdType()Returns theSocksCmdTypeof thisSocksCmdRequestvoidencodeAsByteBuf(ByteBuf byteBuf) host()Returns host that is used as a parameter inSocksCmdTypeintport()Returns port that is used as a parameter inSocksCmdTypeMethods inherited from class io.netty.handler.codec.socks.SocksRequest
requestTypeMethods 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 theSocksCmdTypeof thisSocksCmdRequest- Returns:
- The
SocksCmdTypeof thisSocksCmdRequest
-
addressType
Returns theSocksAddressTypeof thisSocksCmdRequest- Returns:
- The
SocksAddressTypeof 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:
encodeAsByteBufin classSocksMessage
-