public final class SocksCmdRequest extends SocksRequest
SocksCmdResponse,
SocksCmdRequestDecoder| Constructor and Description |
|---|
SocksCmdRequest(SocksCmdType cmdType,
SocksAddressType addressType,
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)
Encode socks message into its byte representation and write it into byteBuf
|
String |
host()
Returns host that is used as a parameter in
SocksCmdType |
int |
port()
Returns port that is used as a parameter in
SocksCmdType |
requestTypeprotocolVersion, typepublic SocksCmdRequest(SocksCmdType cmdType, SocksAddressType addressType, String host, int port)
public SocksCmdType cmdType()
SocksCmdType of this SocksCmdRequestSocksCmdType of this SocksCmdRequestpublic SocksAddressType addressType()
SocksAddressType of this SocksCmdRequestSocksAddressType of this SocksCmdRequestpublic String host()
SocksCmdTypeSocksCmdTypepublic int port()
SocksCmdTypeSocksCmdTypepublic void encodeAsByteBuf(ByteBuf byteBuf)
SocksMessageencodeAsByteBuf in class SocksMessageCopyright © 2008–2014 The Netty Project. All rights reserved.