Package edu.wpi.grip.core.events
Class SocketConnectedChangedEvent
- java.lang.Object
-
- edu.wpi.grip.core.events.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 Summary
Constructors Constructor Description SocketConnectedChangedEvent(Socket socket)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Socket
getSocket()
java.lang.String
toString()
-
-
-
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 classjava.lang.Object
-
-