Class DefaultSocks4CommandRequest

All Implemented Interfaces:
DecoderResultProvider, SocksMessage, Socks4CommandRequest, Socks4Message

public class DefaultSocks4CommandRequest extends AbstractSocks4Message implements Socks4CommandRequest
  • Field Details

    • type

      private final Socks4CommandType type
    • dstAddr

      private final String dstAddr
    • dstPort

      private final int dstPort
    • userId

      private final String userId
  • Constructor Details

    • DefaultSocks4CommandRequest

      public DefaultSocks4CommandRequest(Socks4CommandType type, String dstAddr, int dstPort)
      Creates a new instance.
      Parameters:
      type - the type of the request
      dstAddr - the DSTIP field of the request
      dstPort - the DSTPORT field of the request
    • DefaultSocks4CommandRequest

      public DefaultSocks4CommandRequest(Socks4CommandType type, String dstAddr, int dstPort, String userId)
      Creates a new instance.
      Parameters:
      type - the type of the request
      dstAddr - the DSTIP field of the request
      dstPort - the DSTPORT field of the request
      userId - the USERID field of the request
  • Method Details