Home / Function/ attachQuicheConnection() — netty Function Reference

attachQuicheConnection() — netty Function Reference

Architecture documentation for the attachQuicheConnection() function in QuicheQuicChannel.java from the netty codebase.

Function java Buffer Allocators calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  f6e857b5_5d30_f085_30c4_531d4e875782["attachQuicheConnection()"]
  3c534d05_bb5b_c991_5e03_7ec94e739cf7["QuicheQuicChannel"]
  f6e857b5_5d30_f085_30c4_531d4e875782 -->|defined in| 3c534d05_bb5b_c991_5e03_7ec94e739cf7
  4a98ac7e_20ab_0b82_c3e4_c1bf190a70c4["connectNow()"]
  4a98ac7e_20ab_0b82_c3e4_c1bf190a70c4 -->|calls| f6e857b5_5d30_f085_30c4_531d4e875782
  59573c4d_29c7_0c93_fe13_cd87fd2c0c8c["String()"]
  f6e857b5_5d30_f085_30c4_531d4e875782 -->|calls| 59573c4d_29c7_0c93_fe13_cd87fd2c0c8c
  style f6e857b5_5d30_f085_30c4_531d4e875782 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicheQuicChannel.java lines 294–328

    void attachQuicheConnection(QuicheQuicConnection connection) {
        this.connection = connection;

        byte[] traceId = Quiche.quiche_conn_trace_id(connection.address());
        if (traceId != null) {
            this.traceId = new String(traceId);
        }

        connection.init(local, remote,
                sniHostname -> pipeline().fireUserEventTriggered(new SniCompletionEvent(sniHostname)));

        // Setup QLOG if needed.
        QLogConfiguration configuration = config.getQLogConfiguration();
        if (configuration != null) {
            final String fileName;
            File file = new File(configuration.path());
            if (file.isDirectory()) {
                // Create directory if needed.
                file.mkdir();
                if (this.traceId != null) {
                    fileName = configuration.path() + File.separatorChar + this.traceId + "-" +
                            id().asShortText() + QLOG_FILE_EXTENSION;
                } else {
                    fileName = configuration.path() + File.separatorChar + id().asShortText() + QLOG_FILE_EXTENSION;
                }
            } else {
                fileName = configuration.path();
            }

            if (!Quiche.quiche_conn_set_qlog_path(connection.address(), fileName,
                    configuration.logTitle(), configuration.logDescription())) {
                logger.info("Unable to create qlog file: {} ", fileName);
            }
        }
    }

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

What does attachQuicheConnection() do?
attachQuicheConnection() is a function in the netty codebase, defined in codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicheQuicChannel.java.
Where is attachQuicheConnection() defined?
attachQuicheConnection() is defined in codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicheQuicChannel.java at line 294.
What does attachQuicheConnection() call?
attachQuicheConnection() calls 1 function(s): String.
What calls attachQuicheConnection()?
attachQuicheConnection() is called by 1 function(s): connectNow.

Analyze Your Own Codebase

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

Try Supermodel Free