changeset 354:3c16508419fe

update jsocks to 2011-03-19
author Carl Byington <carl@five-ten-sg.com>
date Fri, 01 Aug 2014 11:39:46 -0700
parents 20412de44c06
children adab27dd4598
files src/net/sourceforge/jsocks/CProxy.java src/net/sourceforge/jsocks/SocksException.java
diffstat 2 files changed, 10 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/src/net/sourceforge/jsocks/CProxy.java	Fri Aug 01 11:35:35 2014 -0700
+++ b/src/net/sourceforge/jsocks/CProxy.java	Fri Aug 01 11:39:46 2014 -0700
@@ -34,17 +34,17 @@
 //Constructors
 //====================
    CProxy(CProxy chainProxy,
-         String proxyHost,int proxyPort)throws UnknownHostException{ 
+         String proxyHost,int proxyPort)throws UnknownHostException{
       this.chainProxy = chainProxy;
       this.proxyHost = proxyHost;
 
       if(chainProxy == null)
          this.proxyIP   = InetAddress.getByName(proxyHost);
-      
+
       this.proxyPort = proxyPort;
    }
 
-  
+
    CProxy(String proxyHost,int proxyPort)throws UnknownHostException{
       this(null,proxyHost,proxyPort);
    }
@@ -147,7 +147,7 @@
     public void setChainProxy(CProxy chainProxy){
         this.chainProxy = chainProxy;
     }
-    
+
     /**
       Get proxy which is used to connect to this proxy.
       @return CProxy which is used to connect to this proxy, or null
@@ -309,7 +309,7 @@
    protected abstract ProxyMessage formMessage(InputStream in)
              throws SocksException,
                     IOException;
-   
+
 
    protected ProxyMessage connect(InetAddress ip,int port)
              throws SocksException{
@@ -427,7 +427,7 @@
       msg.write(out);
    }
 
-   /** 
+   /**
     * Reads the reply from the SOCKS server
     */
    protected ProxyMessage readMsg()throws SocksException,
@@ -481,7 +481,7 @@
    public static final int SOCKS_METHOD_NOTSUPPORTED	=8<<16;
 
 
-   static final int SOCKS_CMD_CONNECT 		=0x1;
+   public static final int SOCKS_CMD_CONNECT 		=0x1;
    static final int SOCKS_CMD_BIND		=0x2;
    static final int SOCKS_CMD_UDP_ASSOCIATE	=0x3;
 
--- a/src/net/sourceforge/jsocks/SocksException.java	Fri Aug 01 11:35:35 2014 -0700
+++ b/src/net/sourceforge/jsocks/SocksException.java	Fri Aug 01 11:39:46 2014 -0700
@@ -52,8 +52,8 @@
 
    static final String UNASSIGNED_ERROR_MESSAGE =
                   "Unknown error message";
-   static final String serverReplyMessage[] = { 
-                  "Succeeded", 
+   static final String serverReplyMessage[] = {
+                  "Succeeded",
                   "General SOCKS server failure",
                   "Connection not allowed by ruleset",
                   "Network unreachable",
@@ -72,7 +72,7 @@
                   "General SOCKS fault" };
 
    String errString;
-   int errCode;
+   public int errCode;
 
 }//End of SocksException class