testLinkOnlyAddressIncludeScopeId() — netty Function Reference
Architecture documentation for the testLinkOnlyAddressIncludeScopeId() function in NativeInetAddressTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD aa96152b_6e1a_2088_4470_f761e1ebd82d["testLinkOnlyAddressIncludeScopeId()"] 32eb789d_8701_8ffc_177a_69c16006f998["NativeInetAddressTest"] aa96152b_6e1a_2088_4470_f761e1ebd82d -->|defined in| 32eb789d_8701_8ffc_177a_69c16006f998 style aa96152b_6e1a_2088_4470_f761e1ebd82d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport-native-unix-common/src/test/java/io/netty/channel/unix/NativeInetAddressTest.java lines 42–55
@Test
public void testLinkOnlyAddressIncludeScopeId() {
int port = 80;
ByteBuffer buffer = ByteBuffer.wrap(new byte[24]);
buffer.put(new byte[] {
(byte) 0xfe, (byte) (byte) 0x80, '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1'});
buffer.putInt(0);
buffer.putInt(port);
InetSocketAddress address = NativeInetAddress.address(buffer.array(), 0, buffer.capacity());
assertEquals(port, address.getPort());
assertInstanceOf(Inet6Address.class, address.getAddress());
assertTrue(address.getAddress().isLinkLocalAddress());
assertEquals("fe80:3030:3030:3030:3030:3030:3030:3031%0", address.getAddress().getHostName());
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does testLinkOnlyAddressIncludeScopeId() do?
testLinkOnlyAddressIncludeScopeId() is a function in the netty codebase, defined in transport-native-unix-common/src/test/java/io/netty/channel/unix/NativeInetAddressTest.java.
Where is testLinkOnlyAddressIncludeScopeId() defined?
testLinkOnlyAddressIncludeScopeId() is defined in transport-native-unix-common/src/test/java/io/netty/channel/unix/NativeInetAddressTest.java at line 42.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free