public final class SocksCmdRequest extends SocksRequest
SocksCmdResponse}
,
SocksCmdRequestDecoder}
SocksRequest.SocksRequestType
SocksMessage.AddressType, SocksMessage.AuthScheme, SocksMessage.AuthStatus, SocksMessage.CmdStatus, SocksMessage.CmdType, SocksMessage.MessageType, SocksMessage.ProtocolVersion, SocksMessage.SubnegotiationVersion
构造器和说明 |
---|
SocksCmdRequest(SocksMessage.CmdType cmdType,
SocksMessage.AddressType addressType,
java.lang.String host,
int port) |
限定符和类型 | 方法和说明 |
---|---|
void |
encodeAsByteBuf(ChannelBuffer channelBuffer)
Encode socks message into its byte representation and write it into byteBuf
|
SocksMessage.AddressType |
getAddressType()
Returns the
AddressType of this SocksCmdRequest |
SocksMessage.CmdType |
getCmdType()
Returns the
SocksMessage.CmdType of this SocksCmdRequest |
java.lang.String |
getHost()
Returns host that is used as a parameter in
SocksMessage.CmdType |
int |
getPort()
Returns port that is used as a parameter in
SocksMessage.CmdType |
getSocksRequestType
getMessageType, getProtocolVersion
public SocksCmdRequest(SocksMessage.CmdType cmdType, SocksMessage.AddressType addressType, java.lang.String host, int port)
public SocksMessage.CmdType getCmdType()
SocksMessage.CmdType
of this SocksCmdRequest
public SocksMessage.AddressType getAddressType()
AddressType
of this SocksCmdRequest
public java.lang.String getHost()
SocksMessage.CmdType
public int getPort()
SocksMessage.CmdType
public void encodeAsByteBuf(ChannelBuffer channelBuffer) throws java.lang.Exception
SocksMessage
encodeAsByteBuf
在类中 SocksMessage
java.lang.Exception
ChannelBuffer