Package 

Class AbstractUdpListener

  • All Implemented Interfaces:

    
    public abstract class AbstractUdpListener
    
                        

    A class which holds a DatagramSocket and runs a thread (thread) which perpetually reads from it. When a datagram from an unknown source is received, it is parsed as a STUN Binding Request, and if it has a USERNAME attribute, its ufrag is extracted. At this point, an implementing class may choose to create a mapping for the remote address of the datagram, which will be used for further packets from this address.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static List<TransportAddress> getAllowedAddresses(int port) Returns the list of TransportAddresses, one for each allowed IP address found on each allowed network interface, with the given port.
      void close() Triggers the termination of the threads of this instance.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • close

         void close()

        Triggers the termination of the threads of this instance.