Examples of disconnectSession()


Examples of org.menacheri.jetserver.app.GameRoom.disconnectSession()

    gameRoom.connectSession(playerSession);
    playerSession.addHandler(new SessionHandlerLatchCounter(playerSession,
        counter, latch));

    // start test
    gameRoom.disconnectSession(playerSession);
    JetlangEventDispatcher gameDispatcher = (JetlangEventDispatcher) gameRoomSession
        .getEventDispatcher();
    assertNoListeners(gameDispatcher);
    Event event = Events.event(null, Events.SESSION_MESSAGE);
    playerSession.onEvent(event);
View Full Code Here

Examples of org.menacheri.jetserver.app.GameRoom.disconnectSession()

    if (null != playerSession)
    {
      channel.write(NettyUtils
          .createBufferForOpcode(Events.LOG_IN_SUCCESS));
      GameRoom gameRoom = playerSession.getGameRoom();
      gameRoom.disconnectSession(playerSession);
      if (null != playerSession.getTcpSender())
        playerSession.getTcpSender().close();

      if (null != playerSession.getUdpSender())
        playerSession.getUdpSender().close();
View Full Code Here

Examples of org.menacheri.jetserver.app.GameRoom.disconnectSession()

  {
    if (null != playerSession)
    {
      channel.write(eventToFrame(Events.LOG_IN_SUCCESS, null));
      GameRoom gameRoom = playerSession.getGameRoom();
      gameRoom.disconnectSession(playerSession);
      if (null != playerSession.getTcpSender())
        playerSession.getTcpSender().close();

      handleReJoin(playerSession, gameRoom, channel);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.