Class SocksCmdRequest
java.lang.Object
io.netty.handler.codec.socks.SocksMessage
io.netty.handler.codec.socks.SocksRequest
io.netty.handler.codec.socks.SocksCmdRequest
-
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 SocksRequest
requestTypeMethods inherited from class SocksMessage
protocolVersion, type
-
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
-