1. /*
  2. * @(#)SocksConsts.java 1.4 03/01/23
  3. *
  4. * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package java.net;
  8. /**
  9. * Constants used by the SOCKS protocol implementation.
  10. */
  11. interface SocksConsts {
  12. static final int PROTO_VERS4 = 4;
  13. static final int PROTO_VERS = 5;
  14. static final int DEFAULT_PORT = 1080;
  15. static final int NO_AUTH = 0;
  16. static final int GSSAPI = 1;
  17. static final int USER_PASSW = 2;
  18. static final int NO_METHODS = -1;
  19. static final int CONNECT = 1;
  20. static final int BIND = 2;
  21. static final int UDP_ASSOC = 3;
  22. static final int IPV4 = 1;
  23. static final int DOMAIN_NAME = 3;
  24. static final int IPV6 = 4;
  25. static final int REQUEST_OK = 0;
  26. static final int GENERAL_FAILURE = 1;
  27. static final int NOT_ALLOWED = 2;
  28. static final int NET_UNREACHABLE = 3;
  29. static final int HOST_UNREACHABLE = 4;
  30. static final int CONN_REFUSED = 5;
  31. static final int TTL_EXPIRED = 6;
  32. static final int CMD_NOT_SUPPORTED = 7;
  33. static final int ADDR_TYPE_NOT_SUP = 8;
  34. }