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 Details

    • ConnectionObserver

      public ConnectionObserver()
      Creates the connection observer.
  • Method Details

    • connectionAdded

      public void connectionAdded(Server server, HostedConnection hc)
      Description copied from interface: ConnectionListener
      Called when a connection has been added to the specified server and is fully setup.
      Specified by:
      connectionAdded in interface ConnectionListener
      Parameters:
      server - the server that accepted the connection
      hc - the newly connected client
    • connectionRemoved

      public void connectionRemoved(Server server, HostedConnection hc)
      Description copied from interface: ConnectionListener
      Called when a connection has been removed from the specified server.
      Specified by:
      connectionRemoved in interface ConnectionListener
      Parameters:
      server - the server that removed the connection
      hc - the disconnected client