Class SocksPortUnificationServerHandler

java.lang.Object
All Implemented Interfaces:
ChannelHandler, ChannelInboundHandler

public class SocksPortUnificationServerHandler extends ByteToMessageDecoder
Detects the version of the current SOCKS connection and initializes the pipeline with Socks4ServerDecoder or Socks5InitialRequestDecoder.
  • Field Details

  • Constructor Details

    • SocksPortUnificationServerHandler

      public SocksPortUnificationServerHandler()
      Creates a new instance with the default configuration.
    • SocksPortUnificationServerHandler

      public SocksPortUnificationServerHandler(Socks5ServerEncoder socks5encoder)
      Creates a new instance with the specified Socks5ServerEncoder. This constructor is useful when a user wants to use an alternative Socks5AddressEncoder.
  • Method Details