Class Socks5ByteStreamManager

    • Method Detail

      • isLocalHostEnabled

        public boolean isLocalHostEnabled()
        Indicates whether the local host is enabled.
        Returns:
        If enabled.
      • setLocalHostEnabled

        public void setLocalHostEnabled​(boolean enabled)
        Enables or disables the use of a local SOCKS5 host.
        Parameters:
        enabled - If enabled.
      • getPort

        public int getPort()
        Gets the port of the local host.
        Returns:
        The port.
      • setPort

        public void setPort​(int port)
        Sets the port of the local host.
        Parameters:
        port - The port.
      • getAvailableStreamHosts

        public AsyncResult<List<StreamHost>> getAvailableStreamHosts()
        Gets a list of available stream hosts, including the discovered proxies and the local host.
        Returns:
        The async result with the stream hosts.
      • setStreamHost

        public void setStreamHost​(StreamHost streamHost)
        Configures a custom stream host. If a stream host is set this way, no stream hosts are discovered, but the configured one is used instead.
        Parameters:
        streamHost - The stream host.
      • getStreamHost

        public StreamHost getStreamHost()
        Gets the configured stream host.
        Returns:
        The configured stream host or null if none was configured.