ArpManager

- Documented constructor
This commit is contained in:
Tristan B. Velloza Kildaire 2024-01-17 21:39:32 +02:00
parent 653994e050
commit ee0f62f090
1 changed files with 9 additions and 0 deletions

View File

@ -75,6 +75,15 @@ public class ArpManager : Receiver
private CacheMap!(Target, ArpEntry) table;
/**
* Constructs a new `ArpManager` with
* the given sweep interval
*
* Params:
* sweepInterval = how often the arp
* table should be checked for expired
* entries
*/
this(Duration sweepInterval = dur!("seconds")(60))
{
this.table = new CacheMap!(Target, ArpEntry)(&regen, sweepInterval);