Class IceUdpMuxListener

java.lang.Object
tel.schich.libdatachannel.IceUdpMuxListener
All Implemented Interfaces:
AutoCloseable

public final class IceUdpMuxListener extends Object implements AutoCloseable
Accepts incoming ICE connections on one UDP endpoint. Native code retains the first STUN request while the application decides; packets never pass through Java. Accepted peers are caller-owned and should be closed before this listener.
  • Constructor Details

  • Method Details

    • failure

      public @Nullable Throwable failure()
      An admission infrastructure failure, for diagnostics.
    • statistics

      public IceUdpMuxListener.Statistics statistics()
    • monitorStun

      public StunUdpMuxMonitor monitorStun(String serverHost, int serverPort)
      Starts caller-owned STUN monitoring on this listener's exact native socket. No peer or data channel is created. Close the returned monitor separately; closing this listener leaves its monitor and already accepted peers owned by their callers.
    • stats

      @Deprecated public long[] stats()
      Deprecated.
      Use statistics() for named counters.
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable