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
-
Nested Class Summary
Nested classes/interfaces inherited from class SocksResponse
SocksResponse.SocksResponseTypeNested classes/interfaces inherited from class SocksMessage
SocksMessage.AddressType, SocksMessage.AuthScheme, SocksMessage.AuthStatus, SocksMessage.CmdStatus, SocksMessage.CmdType, SocksMessage.MessageType, SocksMessage.ProtocolVersion, SocksMessage.SubnegotiationVersion -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SocksMessage.AddressTypeprivate final SocksMessage.CmdStatusprivate static final byte[]private static final byte[] -
Constructor Summary
ConstructorsConstructorDescriptionSocksCmdResponse(SocksMessage.CmdStatus cmdStatus, SocksMessage.AddressType addressType) -
Method Summary
Modifier and TypeMethodDescriptionvoidencodeAsByteBuf(ChannelBuffer channelBuffer) Encode socks message into its byte representation and write it into byteBufReturns theSocksMessage.AddressTypeof thisSocksCmdResponseReturns theSocksMessage.CmdStatusof thisSocksCmdResponseMethods inherited from class SocksResponse
getSocksResponseTypeMethods inherited from class 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.CmdStatusof thisSocksCmdResponse- Returns:
- The
SocksMessage.CmdStatusof thisSocksCmdResponse
-
getAddressType
Returns theSocksMessage.AddressTypeof thisSocksCmdResponse- Returns:
- The
SocksMessage.AddressTypeof thisSocksCmdResponse
-
encodeAsByteBuf
Description copied from class:SocksMessageEncode socks message into its byte representation and write it into byteBuf- Specified by:
encodeAsByteBufin classSocksMessage- See Also:
-