Class NativeDiagnosticHostGate
java.lang.Object
org.cloudburstmc.netty.signaling.diagnostic.NativeDiagnosticHostGate
- All Implemented Interfaces:
AutoCloseable
Explicit diagnostic consumer; never constructs a player child, principal or pipeline event.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionNativeDiagnosticHostGate(NativeHostIdentity identity, InetSocketAddress listenerAddress, DiagnosticHostPolicy policy) -
Method Summary
Modifier and TypeMethodDescriptiontel.schich.libdatachannel.IceUdpMuxListener.Acceptanceadmit(tel.schich.libdatachannel.IceUdpMuxListener.Request request) Same-listener hook.tel.schich.libdatachannel.IceUdpMuxListener.Acceptanceadmit(tel.schich.libdatachannel.IceUdpMuxListener.Request request, VerifiedAdmission verified) Takes ownership of a token already verified by the shared player/diagnostic admission path.assist(AssistedJoin join, Runnable requireCurrent) Authenticated WebSocket path only; never accepts a profile2 permit from an unknown inbound packet.voidassistedAnswerCandidate(AssistedJoin join, InetSocketAddress candidate) Trusted same-mux gatherer capture, before the provider returns the answer.voidcancelAssisted(AssistedJoin join) voidclose()failure()pollResults(int maximum) voidreplacePolicy(DiagnosticHostPolicy replacement) Trusted local configuration only.voidA pending answer cannot outlive its original native attempt while local gathering completes.voidretainEndpoints(Set<DiagnosticHostPolicy.Endpoint> retained) Remove only endpoints that ceased to belong to this listener's advertised snapshot.tel.schich.libdatachannel.IceUdpMuxListener.Acceptancereuse(tel.schich.libdatachannel.IceUdpMuxListener.Request request) Reuse a proactively prepared diagnostic peer; unknown profile2 attempts remain rejected.stats()voidtick()Called by the existing host maintenance loop; never schedules unbounded per-packet work.
-
Constructor Details
-
NativeDiagnosticHostGate
public NativeDiagnosticHostGate(NativeHostIdentity identity, InetSocketAddress listenerAddress, DiagnosticHostPolicy policy)
-
-
Method Details
-
replacePolicy
Trusted local configuration only. Does not renew any admitted attempt or its original deadline. -
stats
-
failure
-
pollResults
-
pollResults
-
retainEndpoints
Remove only endpoints that ceased to belong to this listener's advertised snapshot. Preserve replay history. -
termination
-
admit
public tel.schich.libdatachannel.IceUdpMuxListener.Acceptance admit(tel.schich.libdatachannel.IceUdpMuxListener.Request request) Same-listener hook. Native code verifies the first STUN integrity before this acceptance creates a peer. -
admit
public tel.schich.libdatachannel.IceUdpMuxListener.Acceptance admit(tel.schich.libdatachannel.IceUdpMuxListener.Request request, VerifiedAdmission verified) Takes ownership of a token already verified by the shared player/diagnostic admission path. -
assist
Authenticated WebSocket path only; never accepts a profile2 permit from an unknown inbound packet. -
reuse
public tel.schich.libdatachannel.IceUdpMuxListener.Acceptance reuse(tel.schich.libdatachannel.IceUdpMuxListener.Request request) Reuse a proactively prepared diagnostic peer; unknown profile2 attempts remain rejected. -
requireAssistedCurrent
A pending answer cannot outlive its original native attempt while local gathering completes. -
cancelAssisted
-
assistedAnswerCandidate
Trusted same-mux gatherer capture, before the provider returns the answer. -
tick
public void tick()Called by the existing host maintenance loop; never schedules unbounded per-packet work. -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-