Working on the JMF implementation of the media service.

Added a method for retrieving a public address for a port (without specifying an intended destination), in which case we will be using the address of our stun server as a destination.
cusax-fix
Emil Ivov 20 years ago
parent 72175cf38d
commit 47e5eb72c3

@ -50,14 +50,25 @@ public interface NetworkAddressManagerService
* STUN lib fails, tries to retrieve localhost, if that fails too, returns
* null.
*
* @param indendedDestination the destination that we'd like to use this
* @param intendedDestination the destination that we'd like to use this
* address with.
* @param port the port whose mapping we are interested in.
* @return a public address corresponding to the specified port or null if
* all attempts to retrieve such an address have failed.
*/
public InetSocketAddress getPublicAddressFor(InetAddress indendedDestination,
int port);
public InetSocketAddress getPublicAddressFor(
InetAddress intendedDestination,
int port);
/**
* Tries to obtain a mapped/public address for the specified port (possibly
* by executing a STUN query).
*
* @param port the port whose mapping we are interested in.
* @return a public address corresponding to the specified port or null
* if all attempts to retrieve such an address have failed.
*/
public InetSocketAddress getPublicAddressFor(int port);
/**
* Initializes the network address manager service implementation and

Loading…
Cancel
Save