Home / Function/ testKeyMatch() — netty Function Reference

testKeyMatch() — netty Function Reference

Architecture documentation for the testKeyMatch() function in EpollSocketTcpMd5Test.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  f87e0da2_6453_e575_af3a_19d254719c3f["testKeyMatch()"]
  4ad7f2f4_20c9_39d9_b4a2_dd9acb80ba6d["EpollSocketTcpMd5Test"]
  f87e0da2_6453_e575_af3a_19d254719c3f -->|defined in| 4ad7f2f4_20c9_39d9_b4a2_dd9acb80ba6d
  de3d1602_7245_e829_980d_ec2b06897ef9["handleException()"]
  f87e0da2_6453_e575_af3a_19d254719c3f -->|calls| de3d1602_7245_e829_980d_ec2b06897ef9
  style f87e0da2_6453_e575_af3a_19d254719c3f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport-native-epoll/src/test/java/io/netty/channel/epoll/EpollSocketTcpMd5Test.java lines 135–151

    @Test
    public void testKeyMatch() throws Exception {
        try {
            server.config().setOption(EpollChannelOption.TCP_MD5SIG,
                    Collections.<InetAddress, byte[]>singletonMap(NetUtil.LOCALHOST4, SERVER_KEY));
        } catch (ChannelException ce) {
            handleException(ce);
        }

        EpollSocketChannel client = (EpollSocketChannel) new Bootstrap().group(GROUP)
                .channel(EpollSocketChannel.class)
                .handler(new ChannelInboundHandlerAdapter())
                .option(EpollChannelOption.TCP_MD5SIG,
                        Collections.<InetAddress, byte[]>singletonMap(NetUtil.LOCALHOST4, SERVER_KEY))
                .connect(server.localAddress()).syncUninterruptibly().channel();
        client.close().syncUninterruptibly();
    }

Domain

Subdomains

Frequently Asked Questions

What does testKeyMatch() do?
testKeyMatch() is a function in the netty codebase, defined in transport-native-epoll/src/test/java/io/netty/channel/epoll/EpollSocketTcpMd5Test.java.
Where is testKeyMatch() defined?
testKeyMatch() is defined in transport-native-epoll/src/test/java/io/netty/channel/epoll/EpollSocketTcpMd5Test.java at line 135.
What does testKeyMatch() call?
testKeyMatch() calls 1 function(s): handleException.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free