Class SOCKS5Server

    • Constructor Detail

      • SOCKS5Server

        public SOCKS5Server​(I2PAppContext ctx,
                            Socket clientSock,
                            Properties props)
        Create a SOCKS5 server that communicates with the client using the specified socket. This method should not be invoked directly: new SOCKS5Server objects should be created by using SOCKSServerFactory.createSOCSKServer(). It is assumed that the SOCKS VER field has been stripped from the input stream of the client socket.
        Parameters:
        clientSock - client socket
        props - non-null
    • Method Detail

      • httpsConnect

        public void httpsConnect​(I2PSocket destSock,
                                 OutputStream pout,
                                 String connHostName,
                                 int connPort,
                                 String configUser,
                                 String configPW)
                          throws IOException
        Act as a https client to connect to a CONNECT outproxy. Caller must send success or error to local socks client. Caller must close destSock and pout.
        Parameters:
        destSock - socket to the proxy
        pout - output stream to the proxy
        connHostName - hostname or IP for the proxy to connect to
        connPort - port for the proxy to connect to
        configUser - username unsupported
        configPW - password unsupported
        Throws:
        IOException
        Since:
        0.9.57