Class StreamHost

    • Constructor Detail

      • StreamHost

        public StreamHost​(Jid jid,
                          String host,
                          int port)
        Creates a <streamhost/> element.
        Parameters:
        jid - The JID.
        host - The host address.
        port - The port.
    • Method Detail

      • getHostname

        public final String getHostname()
        Gets the IP address or DNS domain name of the StreamHost for SOCKS5 communication over TCP.
        Specified by:
        getHostname in interface Socks5StreamHost
        Returns:
        The host.
      • getJid

        public final Jid getJid()
        Gets the JabberID of the StreamHost for communication over XMPP.
        Specified by:
        getJid in interface Addressable
        Returns:
        The JID.
      • getPort

        public final int getPort()
        Get the port on which to connect for SOCKS5 communication over TCP.
        Specified by:
        getPort in interface Socks5StreamHost
        Returns:
        The port.