net.i2p.router.transport.udp

## Class IPThrottler

- java.lang.Object
- - net.i2p.router.transport.udp.IPThrottler

-     class IPThrottler
      extends Object

  Throttles connection attempts by IP address to prevent abuse. Counts and limits requests from individual IPs within a time window. Supports both IPv4 (direct IP) and IPv6 (hashed first 8 bytes) addresses.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `IPThrottler(int max, long time)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `shouldThrottle(byte[] ip)` Increments before checking

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### IPThrottler

          public IPThrottler(int max,
                             long time)

  - ### Method Detail

    - #### shouldThrottle

          public boolean shouldThrottle(byte[] ip)

      Increments before checking