Package VASSAL.build.module
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPropertyChangeListener
(String propertyName, PropertyChangeListener l) Register a PropertyChangeListener.boolean
void
Send a command to other players on the servervoid
setConnected
(boolean connect)
-
Field Details
-
CONNECTED
Name of the property fired when the connection is opened/closed. Value is Boolean.TRUE or Boolean.FALSE- See Also:
-
CONNECTION_LOST
- See Also:
-
-
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
-