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);
}