Class SocketConnectedChangedEvent


  • public class SocketConnectedChangedEvent
    extends java.lang.Object
    This event is sent when the state of a socket (connected vs. disconnected) is changed. Specifically, this will only be called if the number of connections either goes to zero when it was non-zero, or when it was zero and one is added. The GUI listens to this event to determine how to render sockets and whether or not so show input controls for them.
    • Constructor Detail

      • SocketConnectedChangedEvent

        public SocketConnectedChangedEvent​(Socket socket)
        Parameters:
        socket - The socket that was either connected or disconneted.
    • Method Detail

      • getSocket

        public Socket getSocket()
        Returns:
        The socket.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object