Class SocksCmdResponse
java.lang.Object
org.jboss.netty.handler.codec.socks.SocksMessage
org.jboss.netty.handler.codec.socks.SocksResponse
org.jboss.netty.handler.codec.socks.SocksCmdResponse
An socks cmd response.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jboss.netty.handler.codec.socks.SocksResponse
SocksResponse.SocksResponseType
Nested classes/interfaces inherited from class org.jboss.netty.handler.codec.socks.SocksMessage
SocksMessage.AddressType, SocksMessage.AuthScheme, SocksMessage.AuthStatus, SocksMessage.CmdStatus, SocksMessage.CmdType, SocksMessage.MessageType, SocksMessage.ProtocolVersion, SocksMessage.SubnegotiationVersion
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SocksMessage.AddressType
private final SocksMessage.CmdStatus
private static final byte[]
private static final byte[]
-
Constructor Summary
ConstructorsConstructorDescriptionSocksCmdResponse
(SocksMessage.CmdStatus cmdStatus, SocksMessage.AddressType addressType) -
Method Summary
Modifier and TypeMethodDescriptionvoid
encodeAsByteBuf
(ChannelBuffer channelBuffer) Encode socks message into its byte representation and write it into byteBufReturns theSocksMessage.AddressType
of thisSocksCmdResponse
Returns theSocksMessage.CmdStatus
of thisSocksCmdResponse
Methods inherited from class org.jboss.netty.handler.codec.socks.SocksResponse
getSocksResponseType
Methods inherited from class org.jboss.netty.handler.codec.socks.SocksMessage
getMessageType, getProtocolVersion
-
Field Details
-
cmdStatus
-
addressType
-
IPv4_HOSTNAME_ZEROED
private static final byte[] IPv4_HOSTNAME_ZEROED -
IPv6_HOSTNAME_ZEROED
private static final byte[] IPv6_HOSTNAME_ZEROED
-
-
Constructor Details
-
SocksCmdResponse
-
-
Method Details
-
getCmdStatus
Returns theSocksMessage.CmdStatus
of thisSocksCmdResponse
- Returns:
- The
SocksMessage.CmdStatus
of thisSocksCmdResponse
-
getAddressType
Returns theSocksMessage.AddressType
of thisSocksCmdResponse
- Returns:
- The
SocksMessage.AddressType
of thisSocksCmdResponse
-
encodeAsByteBuf
Description copied from class:SocksMessage
Encode socks message into its byte representation and write it into byteBuf- Specified by:
encodeAsByteBuf
in classSocksMessage
- See Also:
-