networkInterfaces() — netty Function Reference
Architecture documentation for the networkInterfaces() function in NetUtilInitializations.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD dc20874e_8c2a_2f94_66ae_08e7dbbc0007["networkInterfaces()"] 079fd0dd_85b4_85e3_2cd2_da5d5fb2b78e["NetUtilInitializations"] dc20874e_8c2a_2f94_66ae_08e7dbbc0007 -->|defined in| 079fd0dd_85b4_85e3_2cd2_da5d5fb2b78e style dc20874e_8c2a_2f94_66ae_08e7dbbc0007 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/main/java/io/netty/util/NetUtilInitializations.java lines 71–90
static Collection<NetworkInterface> networkInterfaces() {
List<NetworkInterface> networkInterfaces = new ArrayList<NetworkInterface>();
try {
Enumeration<NetworkInterface> interfaces = NetworkInterface.getNetworkInterfaces();
if (interfaces != null) {
while (interfaces.hasMoreElements()) {
networkInterfaces.add(interfaces.nextElement());
}
}
} catch (SocketException e) {
logger.warn("Failed to retrieve the list of available network interfaces", e);
} catch (NullPointerException e) {
if (!PlatformDependent.isAndroid()) {
throw e;
}
// Might happen on earlier version of Android.
// See https://developer.android.com/reference/java/net/NetworkInterface#getNetworkInterfaces()
}
return Collections.unmodifiableList(networkInterfaces);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does networkInterfaces() do?
networkInterfaces() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/NetUtilInitializations.java.
Where is networkInterfaces() defined?
networkInterfaces() is defined in common/src/main/java/io/netty/util/NetUtilInitializations.java at line 71.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free