Package VASSAL.build.module
Interface ServerConnection
- All Known Subinterfaces:
ChatServerConnection,LockableChatServerConnection
- All Known Implementing Classes:
ClientTest,DummyClient,DynamicClient,HybridClient,JabberClient,NodeClient,NodeHybridClient,P2PClient,SocketNodeClient
public interface ServerConnection
Represents the connection to a live server
-
Field Summary
-
Method Summary
Modifier and Type Method Description voidaddPropertyChangeListener(String propertyName, PropertyChangeListener l)Register a PropertyChangeListener.booleanisConnected()voidsendToOthers(Command c)Send a command to other players on the servervoidsetConnected(boolean connect)
-
Field Details
-
CONNECTED
Name of the property fired when the connection is opened/clused. Value is Boolean.TRUE or Boolean.FALSE- See Also:
- Constant Field Values
-
-
Method Details
-
sendToOthers
Send a command to other players on the server -
setConnected
void setConnected(boolean connect) -
isConnected
boolean isConnected() -
addPropertyChangeListener
Register a PropertyChangeListener. Changes to connection status triggers a PropertyChangeEvent, and concrete implementations may define other properties
-