Package marauroa.server.net.validator

Examples of marauroa.server.net.validator.ConnectionValidator


    super("NetworkServerManager");
    /*
     * init the packet validator (which can now only check if the address is
     * banned)
     */
    connectionValidator = new ConnectionValidator();

    /* create a flood check on connections */
    IFloodCheck check = new FloodCheck(this);
    floodValidator = new FloodValidator(check);

View Full Code Here


  public void t8_testBannedIP() throws IOException, InvalidVersionException,
      TimeoutException, LoginFailedException {
    BareRPRuleProcessor rp = (BareRPRuleProcessor) BareRPRuleProcessor
        .get();
    ConnectionValidator conn = rp.getValidator();

    conn.addBan("127.0.0.1", "0.0.0.0", 20);

    try {
      client = new SimpleClient("log4j.properties");
      client.connect("localhost", PORT);
      client.login("testUsername", "password");
View Full Code Here

TOP

Related Classes of marauroa.server.net.validator.ConnectionValidator

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.