Class StunBinding

java.lang.Object
tel.schich.libdatachannel.StunBinding

public final class StunBinding extends Object
Owned observation from one resolved STUN server; a mapping is not a reachability verdict.
  • Method Details

    • serverAddress

      public String serverAddress()
    • serverPort

      public int serverPort()
    • mappedAddress

      public String mappedAddress()
      Empty until the first accepted response.
    • mappedPort

      public int mappedPort()
      Zero until the first accepted response.
    • state

      public StunBinding.State state()
    • successfulResponses

      public long successfulResponses()
    • failedTransactions

      public long failedTransactions()
    • mappingRevision

      public long mappingRevision()
    • lastSuccessAge

      public Optional<Duration> lastSuccessAge()
      Empty before any successful observation. Age continues increasing on retained snapshots using the JVM monotonic clock, including JNI read time. Reading this value never renews the native observation.