Class WebConnectedHost

  • All Implemented Interfaces:
    IConnectedHost

    public class WebConnectedHost
    extends java.lang.Object
    implements IConnectedHost
    Host connected via http.
    • Constructor Summary

      Constructors 
      Constructor Description
      WebConnectedHost​(java.lang.String remoteaddr, java.util.Map<java.lang.String,​IRegisteredHost> registeredhosts, java.net.DatagramSocket dgsocket)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​IRegisteredHost> getRegisteredHosts()
      Retrieves the registered hosts.
      java.net.InetAddress getRemoteAddress()
      Gets the address of the connected host.
      java.net.DatagramSocket getUdpSocket()
      Retrieves the UDP socket for testing communication.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • remoteaddr

        protected java.lang.String remoteaddr
      • registeredhosts

        protected java.util.Map<java.lang.String,​IRegisteredHost> registeredhosts
      • dgsocket

        protected java.net.DatagramSocket dgsocket
    • Constructor Detail

      • WebConnectedHost

        public WebConnectedHost​(java.lang.String remoteaddr,
                                java.util.Map<java.lang.String,​IRegisteredHost> registeredhosts,
                                java.net.DatagramSocket dgsocket)
    • Method Detail

      • getRemoteAddress

        public java.net.InetAddress getRemoteAddress()
        Gets the address of the connected host.
        Specified by:
        getRemoteAddress in interface IConnectedHost
        Returns:
        The address.
      • getUdpSocket

        public java.net.DatagramSocket getUdpSocket()
        Retrieves the UDP socket for testing communication.
        Specified by:
        getUdpSocket in interface IConnectedHost
        Returns:
        The UDP socket.