Interface ServerConnection

All Known Subinterfaces:
ChatServerConnection, LockableChatServerConnection
All Known Implementing Classes:
ClientTest, DummyClient, DynamicClient, HybridClient, NodeClient, OfficialNodeClient, P2PClient, PrivateNodeClient

public interface ServerConnection
Represents the connection to a live server
  • Field Details

    • CONNECTED

      static final String CONNECTED
      Name of the property fired when the connection is opened/closed. Value is Boolean.TRUE or Boolean.FALSE
      See Also:
      Constant Field Values
  • Method Details

    • sendToOthers

      void sendToOthers(Command c)
      Send a command to other players on the server
    • setConnected

      void setConnected(boolean connect)
    • isConnected

      boolean isConnected()
    • addPropertyChangeListener

      void addPropertyChangeListener(String propertyName, PropertyChangeListener l)
      Register a PropertyChangeListener. Changes to connection status triggers a PropertyChangeEvent, and concrete implementations may define other properties