public final class SocksCmdRequest extends SocksRequest
| 构造器和说明 |
|---|
SocksCmdRequest(SocksCmdType cmdType,
SocksAddressType addressType,
java.lang.String host,
int port) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 |
requestTypeprotocolVersion, typepublic SocksCmdRequest(SocksCmdType cmdType, SocksAddressType addressType, java.lang.String host, int port)
public SocksCmdType cmdType()
SocksCmdType of this SocksCmdRequestSocksCmdType of this SocksCmdRequestpublic SocksAddressType addressType()
SocksAddressType of this SocksCmdRequestSocksAddressType of this SocksCmdRequestpublic java.lang.String host()
SocksCmdTypeSocksCmdTypepublic int port()
SocksCmdTypeSocksCmdTypepublic void encodeAsByteBuf(ByteBuf byteBuf)
encodeAsByteBuf 在类中 SocksMessage