HolePunchServiceImpl constructor
HolePunchServiceImpl(
- Host _host,
- IDService _ids,
- List<
MultiAddr> _listenAddrs(), { - HolePunchOptions? options,
Creates a new holepunch service
listenAddrs MUST only return public addresses.
Implementation
HolePunchServiceImpl(this._host, this._ids, this._listenAddrs, {
HolePunchOptions? options,
}) :
_tracer = options?.tracer,
_filter = options?.filter {
_incrementRefCount();
_waitForPublicAddr();
}