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
Constructor and Description |
---|
SocksCmdRequest(SocksMessage.CmdType cmdType,
SocksMessage.AddressType addressType,
String host,
int port) |
Modifier and Type | Method and Description |
---|---|
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 |
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, String host, int port)
public SocksMessage.CmdType getCmdType()
SocksMessage.CmdType
of this SocksCmdRequest
public SocksMessage.AddressType getAddressType()
AddressType
of this SocksCmdRequest
public String getHost()
SocksMessage.CmdType
public int getPort()
SocksMessage.CmdType
public void encodeAsByteBuf(ChannelBuffer channelBuffer) throws Exception
SocksMessage
encodeAsByteBuf
in class SocksMessage
Exception
ChannelBuffer
Copyright © 2008-2014 The Netty Project. All Rights Reserved.