Class Bytestream.StreamHost

    • Constructor Detail

      • StreamHost

        public StreamHost​(Jid jid,
                          String address,
                          int port)
        Default constructor.
        Parameters:
        jid - The JID of the stream host.
        address - The internet address of the stream host.
        port - port of the stream host.
      • StreamHost

        public StreamHost​(Jid jid,
                          InternetAddress address,
                          int port)
        Stream Host constructor.
        Parameters:
        jid - The JID of the stream host.
        address - The internet address of the stream host.
        port - port of the stream host.
    • Method Detail

      • getJID

        public Jid getJID()
        Returns the JID of the stream host.
        Returns:
        Returns the JID of the stream host.
      • getAddress

        public InternetAddress getAddress()
        Returns the internet address of the stream host.
        Returns:
        Returns the internet address of the stream host.
      • getPort

        public int getPort()
        Returns the port on which the potential stream host would accept the connection.
        Returns:
        Returns the port on which the potential stream host would accept the connection.