Three networking requirements from JDK8 embedded:
* Enable aliasing support so that network interfaces can be referred
to by well-known names such as "cellular" rather than hardware
platform-specific OS device names.
* Provide the ability to listen for network interface up/down
transitions.
* Provide an API to list one or more default network interfaces that
will be used when sockets are created if the socket being created
is not bound to a specific local address (and hence network
interface). This needs to be done in such a way that socket
creation performed by library code on behalf of the application
will be affected as well. In other words, if an application is
using, say, the JAX-RS client API, the socket(s) created by the
JAX-RS implementation should be affected by this API. If a list of
more than one interfaces is provided, it should be treated as an
ordered preference list. Ideally it should be possible to provide
this API in such a way as to allow different OSGi applications
running within the same VM to have different default network
interface settings.
* Enable aliasing support so that network interfaces can be referred
to by well-known names such as "cellular" rather than hardware
platform-specific OS device names.
* Provide the ability to listen for network interface up/down
transitions.
* Provide an API to list one or more default network interfaces that
will be used when sockets are created if the socket being created
is not bound to a specific local address (and hence network
interface). This needs to be done in such a way that socket
creation performed by library code on behalf of the application
will be affected as well. In other words, if an application is
using, say, the JAX-RS client API, the socket(s) created by the
JAX-RS implementation should be affected by this API. If a list of
more than one interfaces is provided, it should be treated as an
ordered preference list. Ideally it should be possible to provide
this API in such a way as to allow different OSGi applications
running within the same VM to have different default network
interface settings.
- relates to
-
JDK-8046115 JEP 125: Network Interface Aliases, Events, and Defaults
- Closed