Package net.cis.server.backend.model

Examples of net.cis.server.backend.model.ClientState


  }

  @Override
  public void connectionAdded(Server server, HostedConnection conn) {
    int id = conn.getId();
    clientMap.put(id, new ClientState(conn));
  }
View Full Code Here


    this.clientMap = clientMap;
  }

  @Override
  public void messageReceived(HostedConnection source, Message m) {
    ClientState client = clientMap.get(source.getId());
    if (client == null) {
      source.close("You're not known by the server. Did you please gracefully for a connection?");
      LogFactory.getLog(ServerMessageListener.class).error("Unknown Host! : " + source.getAddress());
    }

    if (!client.isAuthorized())
      doHandshake(client, m);
  }
View Full Code Here

TOP

Related Classes of net.cis.server.backend.model.ClientState

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.