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
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPropertyChangeListener(String propertyName, PropertyChangeListener l) Register a PropertyChangeListener.booleanvoidSend a command to other players on the servervoidsetConnected(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
-