Class SocketReceiver.SocketDetail

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String address
      Address.
      private int port
      Port.
      private SocketNode13 socketNode
      Socket node.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private SocketDetail​(java.net.Socket socket, SocketNode13 node)
      Create new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getAddress()
      Returns a String representation of the Address this instance encompasses.
      java.lang.String getName()
      Get name.
      int getPort()
      Returns the Port # that this net based thing is using.
      boolean isActive()
      Get if item is active.
      boolean isPaused()
      Get paused state.
      void setPaused​(boolean b)
      Set paused state.
      • Methods inherited from class java.lang.Object

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

      • address

        private java.lang.String address
        Address.
      • port

        private int port
        Port.
    • Constructor Detail

      • SocketDetail

        private SocketDetail​(java.net.Socket socket,
                             SocketNode13 node)
        Create new instance.
        Parameters:
        socket - socket
        node - socket node
    • Method Detail

      • getAddress

        public java.lang.String getAddress()
        Returns a String representation of the Address this instance encompasses.
        Specified by:
        getAddress in interface AddressBased
        Returns:
        String representation of the Address
      • getPort

        public int getPort()
        Returns the Port # that this net based thing is using.
        Specified by:
        getPort in interface PortBased
        Returns:
        int port number
      • getName

        public java.lang.String getName()
        Get name.
        Specified by:
        getName in interface NetworkBased
        Returns:
        name.
      • isActive

        public boolean isActive()
        Get if item is active.
        Specified by:
        isActive in interface NetworkBased
        Returns:
        if true, item is active.
      • isPaused

        public boolean isPaused()
        Get paused state.
        Specified by:
        isPaused in interface Pauseable
        Returns:
        paused state.
      • setPaused

        public void setPaused​(boolean b)
        Set paused state.
        Specified by:
        setPaused in interface Pauseable
        Parameters:
        b - new value