-
- All Implemented Interfaces:
public abstract class AbstractUdpListenerA 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.
-
-
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. voidclose()Triggers the termination of the threads of this instance. -
-
Method Detail
-
getAllowedAddresses
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.
- Parameters:
port- the UDP port number.
-
close
void close()
Triggers the termination of the threads of this instance.
-
-
-
-