Class ProxySOCKS5

  • All Implemented Interfaces:
    Proxy

    public class ProxySOCKS5
    extends java.lang.Object
    implements Proxy
    • Constructor Detail

      • ProxySOCKS5

        public ProxySOCKS5​(java.lang.String proxy_host)
      • ProxySOCKS5

        public ProxySOCKS5​(java.lang.String proxy_host,
                           int proxy_port)
    • Method Detail

      • setUserPasswd

        public void setUserPasswd​(java.lang.String user,
                                  java.lang.String passwd)
      • getInputStream

        public java.io.InputStream getInputStream()
        Specified by:
        getInputStream in interface Proxy
      • getOutputStream

        public java.io.OutputStream getOutputStream()
        Specified by:
        getOutputStream in interface Proxy
      • getSocket

        public java.net.Socket getSocket()
        Specified by:
        getSocket in interface Proxy
      • close

        public void close()
        Specified by:
        close in interface Proxy
      • getDefaultPort

        public static int getDefaultPort()