Package be.demmel.jgws.packets.gameserver.outbound

Examples of be.demmel.jgws.packets.gameserver.outbound.P019_Heartbeat


              // Even if we sleep 250 ms we need to calcaulate this. Why? I dunno.
              long timeBetweenNowAndLastHeartbeat = new Date().getTime() - currentCharacter.getLastHeartBeat().getTime();

              LOGGER.debug("{} Sending HeartBeat for character with charId: {}", ctx.channel(), currentCharacter.getCharID());

              P019_Heartbeat heartbeat = new P019_Heartbeat();
              heartbeat.setUnknown1(timeBetweenNowAndLastHeartbeat);
              ctx.write(heartbeat);

              currentCharacter.setLastHeartBeat(new Date());
    }, 250, 250, TimeUnit.MILLISECONDS);
  }
View Full Code Here

TOP

Related Classes of be.demmel.jgws.packets.gameserver.outbound.P019_Heartbeat

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.