java.lang.Object
net.i2p.socks.SOCKS5Constants.Command
Enclosing class:
SOCKS5Constants

public static class SOCKS5Constants.Commandextends Object
SOCKS5 command codes.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Listen on a TCP port and wait for one inbound connection.
    static final int
    Open a relayed TCP connection to the requested destination.
    static final int
    Tor extension: open a connection to a directory authority.
    static final int
    Tor extension: resolve the destination through the SOCKS proxy instead of connecting to it.
    static final int
    Tor extension: reverse-resolve an address to a hostname.
    static final int
    Associate a UDP port to relay datagrams.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Names the constant list itself; it holds no per-instance state.
  • Method Summary

    Methods inherited from class Object

    clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • CONNECT

      public static final int CONNECT
      Open a relayed TCP connection to the requested destination.
      See Also:
    • BIND

      public static final int BIND
      Listen on a TCP port and wait for one inbound connection.
      See Also:
    • UDP_ASSOCIATE

      public static final int UDP_ASSOCIATE
      Associate a UDP port to relay datagrams.
      See Also:
    • TOR_RESOLVE

      public static final int TOR_RESOLVE
      Tor extension: resolve the destination through the SOCKS proxy instead of connecting to it.
      See Also:
    • TOR_RESOLVE_PTR

      public static final int TOR_RESOLVE_PTR
      Tor extension: reverse-resolve an address to a hostname. This server rejects the command.
      See Also:
    • TOR_CONNECT_DIR

      public static final int TOR_CONNECT_DIR
      Tor extension: open a connection to a directory authority. This server rejects the command.
      See Also:
  • Constructor Details

    • Command

      public Command()
      Names the constant list itself; it holds no per-instance state.