Package marauroa.common.net.message

Examples of marauroa.common.net.message.MessageC2SCreateAccount


   *             if timeout happens while waiting for the message.
   * @throws BannedAddressException
   */
  public synchronized AccountResult createAccount(String username, String password, String email)
          throws TimeoutException, InvalidVersionException, BannedAddressException {
    Message msgCA = new MessageC2SCreateAccount(null, username, password, email);

    netMan.addMessage(msgCA);

    int received = 0;

View Full Code Here


      String pasword = null;
      String email = null;
      String address = null;

      if (message instanceof MessageC2SCreateAccount) {
        MessageC2SCreateAccount msg = (MessageC2SCreateAccount) message;
        username = msg.getUsername();
        pasword = msg.getPassword();
        email = msg.getEmail();
        address = msg.getAddress().getHostAddress();
      } else {
        MessageP2SCreateAccount msg = (MessageP2SCreateAccount) message;
        if ((msg.getCredentials() == null) || !(msg.getCredentials().equals(Configuration.getConfiguration().get("proxy_credentials")))) {
          logger.warn("Invalid credentials for proxy method.");
          return;
        }
        username = msg.getUsername();
        pasword = msg.getPassword();
        email = msg.getEmail();
        address = msg.getForwardedFor();
      }

      /*
       * We request RP Manager to create an account for our player. This
       * will return a <b>result</b> of the operation.
View Full Code Here

TOP

Related Classes of marauroa.common.net.message.MessageC2SCreateAccount

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.