Package com.ngt.jopenmetaverse.shared.sim.events.nm

Examples of com.ngt.jopenmetaverse.shared.sim.events.nm.SimDisconnectedEventArgs


      simulator.Disconnect(sendCloseCircuit);

      // Fire the SimDisconnected event if a handler is registered
      if (OnSimDisconnected != null)
      {
        OnSimDisconnected.raiseEvent(new SimDisconnectedEventArgs(simulator, DisconnectType.NetworkTimeout));
      }

      synchronized (Simulators) {Simulators.remove(simulator);}

      if (Simulators.size() == 0) Shutdown(DisconnectType.SimShutdown);
View Full Code Here


          Simulators.get(i).Disconnect(sendCloseCircuit);

          // Fire the SimDisconnected event if a handler is registered
          if (OnSimDisconnected != null)
          {
            OnSimDisconnected.raiseEvent(new SimDisconnectedEventArgs(Simulators.get(i), type));
          }
        }
      }

      Simulators.clear();
    }

    if (getCurrentSim() != null)
    {
      // Kill the connection to the curent simulator
      getCurrentSim().Disconnect(sendCloseCircuit);

      // Fire the SimDisconnected event if a handler is registered
      if (OnSimDisconnected != null)
      {
        OnSimDisconnected.raiseEvent(new SimDisconnectedEventArgs(getCurrentSim(), type));
      }
    }

    // Clear out all of the packets that never had time to process
    //        PacketInbox.Close();
View Full Code Here

TOP

Related Classes of com.ngt.jopenmetaverse.shared.sim.events.nm.SimDisconnectedEventArgs

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.