Package l2p.status

Examples of l2p.status.Status


        Util.waitForFreePorts(Config.GAMESERVER_HOSTNAME, Config.PORTS_GAME);
        L2DatabaseFactory.getInstance();
        Log.InitGSLoggers();
        gameServer = new GameServer();
        if (Config.IS_TELNET_ENABLED) {
            statusServer = new Status(Server.MODE_GAMESERVER);
            statusServer.start();
        } else {
            _log.info("Telnet server is currently disabled.");
        }
        Util.gc(5, 1000);
View Full Code Here


    _log.info("Listening for GameServers on " + Config.GAME_SERVER_LOGIN_HOST + ":" + Config.GAME_SERVER_LOGIN_PORT);
    if(Config.IS_LOGIN_TELNET_ENABLED)
    {
      try
      {
        statusServer = new Status(Server.MODE_LOGINSERVER);
        statusServer.start();
      }
      catch(IOException e)
      {
        _log.severe("Failed to start the Telnet Server. Reason: " + e.getMessage());
        if(Config.LOGIN_DEBUG)
        {
          e.printStackTrace();
        }
      }
    }
    else
    {
      _log.info("LoginServer Telnet server is currently disabled.");
    }
    try
    {
      SelectorThread.setAntiFlood(Config.ANTIFLOOD_ENABLE);
      SelectorThread.setAntiFloodSocketsConf(Config.MAX_UNHANDLED_SOCKETS_PER_IP, Config.UNHANDLED_SOCKET_MIN_TTL);
      _selectorThread.openServerSocket(ad, Config.PORT_LOGIN);
    }
    catch(IOException e)
    {
      _log.severe("FATAL: Failed to open server socket on " + ad + ":" + Config.PORT_LOGIN + ". Reason: " + e.getMessage());
      if(Config.LOGIN_DEBUG)
      {
        e.printStackTrace();
      }
      Server.exit(1, "FATAL: Failed to open server socket on " + ad + ":" + Config.PORT_LOGIN + ". Reason: " + e.getMessage());
    }
    _selectorThread.start();
    _log.info("Login Server ready on port " + Config.PORT_LOGIN);
    _log.info(IpManager.getInstance().getBannedCount() + " banned IPs defined");
    if(Config.COMBO_MODE)
    {
      try
      {
        Util.waitForFreePorts(Config.GAMESERVER_HOSTNAME, Config.PORTS_GAME);
        if(Config.IS_TELNET_ENABLED)
        {
          Status _statusServer = new Status(Server.MODE_GAMESERVER);
          _statusServer.start();
        }
        else
        {
          _log.info("GameServer Telnet server is currently disabled.");
        }
View Full Code Here

TOP

Related Classes of l2p.status.Status

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.