Home / Function/ doHandshake() — netty Function Reference

doHandshake() — netty Function Reference

Architecture documentation for the doHandshake() function in AbstractSslHandlerBenchmark.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  4894c167_1d6b_0d7e_6d00_9efcfe204744["doHandshake()"]
  af13e1ad_19d3_6266_db4e_36c57d148c92["AbstractSslHandlerBenchmark"]
  4894c167_1d6b_0d7e_6d00_9efcfe204744 -->|defined in| af13e1ad_19d3_6266_db4e_36c57d148c92
  style 4894c167_1d6b_0d7e_6d00_9efcfe204744 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

microbench/src/main/java/io/netty/microbench/handler/ssl/AbstractSslHandlerBenchmark.java lines 139–154

    protected final void doHandshake() throws Exception {
        serverSslHandler.handlerAdded(serverCtx);
        clientSslHandler.handlerAdded(clientCtx);
        do {
            ByteBuf clientCumulation = clientCtx.cumulation();
            if (clientCumulation != null) {
                serverSslHandler.channelRead(serverCtx, clientCumulation.retain());
                clientCtx.releaseCumulation();
            }
            ByteBuf serverCumulation = serverCtx.cumulation();
            if (serverCumulation != null) {
                clientSslHandler.channelRead(clientCtx, serverCumulation.retain());
                serverCtx.releaseCumulation();
            }
        } while (!clientSslHandler.handshakeFuture().isDone() || !serverSslHandler.handshakeFuture().isDone());
    }

Domain

Subdomains

Frequently Asked Questions

What does doHandshake() do?
doHandshake() is a function in the netty codebase, defined in microbench/src/main/java/io/netty/microbench/handler/ssl/AbstractSslHandlerBenchmark.java.
Where is doHandshake() defined?
doHandshake() is defined in microbench/src/main/java/io/netty/microbench/handler/ssl/AbstractSslHandlerBenchmark.java at line 139.

Analyze Your Own Codebase

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

Try Supermodel Free