Class HostedServiceManager.ConnectionObserver
java.lang.Object
com.jme3.network.service.HostedServiceManager.ConnectionObserver
- All Implemented Interfaces:
ConnectionListener
- Enclosing class:
HostedServiceManager
protected class HostedServiceManager.ConnectionObserver
extends Object
implements ConnectionListener
Observes server connection events and forwards them to hosted services.
- Author:
- Paul Speed
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconnectionAdded(Server server, HostedConnection hc) Called when a connection has been added to the specified server and is fully setup.voidconnectionRemoved(Server server, HostedConnection hc) Called when a connection has been removed from the specified server.
-
Constructor Details
-
ConnectionObserver
public ConnectionObserver()Creates the connection observer.
-
-
Method Details
-
connectionAdded
Description copied from interface:ConnectionListenerCalled when a connection has been added to the specified server and is fully setup.- Specified by:
connectionAddedin interfaceConnectionListener- Parameters:
server- the server that accepted the connectionhc- the newly connected client
-
connectionRemoved
Description copied from interface:ConnectionListenerCalled when a connection has been removed from the specified server.- Specified by:
connectionRemovedin interfaceConnectionListener- Parameters:
server- the server that removed the connectionhc- the disconnected client
-