diff src/net/sourceforge/jsocks/CProxy.java @ 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 205ee2873330
children
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;