Package plar.ClientServer.Signal

Examples of plar.ClientServer.Signal.Login


  public  synchronized void process(byte[] data, byte signal) throws SocketException,
  IOException, ClassNotFoundException {
    lastSignal=Calendar.getInstance().getTimeInMillis();
    // Common.info(1, "client processing data.length:"+data.length);
    if (signal == Signal.LOGIN) {
      Login login;
      login = (Login) Signal.toObject(data);
      // Common.info(1, "loginclass:"+login);
      String name = login.userName;
      username=name;
      String type = login.playerName;
View Full Code Here


  }

  public synchronized void setPlayer(String n, String t) throws IOException {
    Common.info(7, "client:loggingingin");
    Login login = new Login();
    login.playerName = t;
    login.userName = n;
    socket.send(Signal.send(login, (byte) ID, (byte) Key, Signal.LOGIN,
    addr));
View Full Code Here

TOP

Related Classes of plar.ClientServer.Signal.Login

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.