Examples of MessageC2SLoginSendPromise


Examples of marauroa.common.net.message.MessageC2SLoginSendPromise

        case S2C_LOGIN_SENDKEY: {
          logger.debug("Received Key");
          key = ((MessageS2CLoginSendKey) msg).getKey();

          clientNonce = Hash.random(Hash.hashLength());
          netMan.addMessage(new MessageC2SLoginSendPromise(null, Hash.hash(clientNonce)));
          break;
        }
          /* Server sends a random big integer */
        case S2C_LOGIN_SENDNONCE: {
          logger.debug("Received Server Nonce");
View Full Code Here

Examples of marauroa.common.net.message.MessageC2SLoginSendPromise

        msgLoginNACK.setProtocolVersion(msg.getProtocolVersion());
        netMan.sendMessage(msgLoginNACK);
        return;
      }

      MessageC2SLoginSendPromise msgLoginSendPromise = (MessageC2SLoginSendPromise) msg;

      PlayerEntry entry = playerContainer.add(msgLoginSendPromise.getSocketChannel());
      entry.setProtocolVersion(msg.getProtocolVersion());

      byte[] serverNonce = Hash.random(Hash.hashLength());
      byte[] clientNonceHash = msgLoginSendPromise.getHash();

      entry.loginInformations = new PlayerEntry.SecuredLoginInfo(key, clientNonceHash,
              serverNonce, msgLoginSendPromise.getAddress());

      MessageS2CLoginSendNonce msgLoginSendNonce = new MessageS2CLoginSendNonce(msg
              .getSocketChannel(), serverNonce);
      msgLoginSendNonce.setClientID(entry.clientid);
      msgLoginSendNonce.setProtocolVersion(msg.getProtocolVersion());
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.