Package tel.schich.libdatachannel
Class IceUdpMuxListener
java.lang.Object
tel.schich.libdatachannel.IceUdpMuxListener
- All Implemented Interfaces:
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classSettings returned by application admission.static interfacestatic final classParsed, untrusted metadata from an incoming STUN request.static final classSnapshot of native listener activity. -
Constructor Summary
ConstructorsConstructorDescriptionIceUdpMuxListener(InetAddress bindAddress, int port, int maxPendingRequests, Duration requestTimeout, Executor executor, IceUdpMuxListener.Handler handler) IceUdpMuxListener(InetAddress bindAddress, int port, Executor executor, IceUdpMuxListener.Handler handler) -
Method Summary
-
Constructor Details
-
IceUdpMuxListener
public IceUdpMuxListener(InetAddress bindAddress, int port, Executor executor, IceUdpMuxListener.Handler handler) -
IceUdpMuxListener
public IceUdpMuxListener(InetAddress bindAddress, int port, int maxPendingRequests, Duration requestTimeout, Executor executor, IceUdpMuxListener.Handler handler)
-
-
Method Details
-
failure
An admission infrastructure failure, for diagnostics. -
statistics
-
monitorStun
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.Usestatistics()for named counters. -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
statistics()for named counters.