KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > net > SocksConsts


1 /*
2  * @(#)SocksConsts.java 1.6 05/11/17
3  *
4  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7 package java.net;
8
9 /**
10  * Constants used by the SOCKS protocol implementation.
11  */

12
13 interface SocksConsts {
14     static final int PROTO_VERS4 = 4;
15     static final int PROTO_VERS = 5;
16     static final int DEFAULT_PORT = 1080;
17
18     static final int NO_AUTH = 0;
19     static final int GSSAPI = 1;
20     static final int USER_PASSW = 2;
21     static final int NO_METHODS = -1;
22
23     static final int CONNECT = 1;
24     static final int BIND = 2;
25     static final int UDP_ASSOC = 3;
26
27     static final int IPV4 = 1;
28     static final int DOMAIN_NAME = 3;
29     static final int IPV6 = 4;
30
31     static final int REQUEST_OK = 0;
32     static final int GENERAL_FAILURE = 1;
33     static final int NOT_ALLOWED = 2;
34     static final int NET_UNREACHABLE = 3;
35     static final int HOST_UNREACHABLE = 4;
36     static final int CONN_REFUSED = 5;
37     static final int TTL_EXPIRED = 6;
38     static final int CMD_NOT_SUPPORTED = 7;
39     static final int ADDR_TYPE_NOT_SUP = 8;
40 }
41
Popular Tags