Home / Function/ toQuicheQuicSession() — netty Function Reference

toQuicheQuicSession() — netty Function Reference

Architecture documentation for the toQuicheQuicSession() function in BoringSSLSessionCallback.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  542fec67_9434_e1a5_46f0_2a5cbe2252cc["toQuicheQuicSession()"]
  94eb0a3b_5243_5bc2_d05f_6c638aba2c5d["BoringSSLSessionCallback"]
  542fec67_9434_e1a5_46f0_2a5cbe2252cc -->|defined in| 94eb0a3b_5243_5bc2_d05f_6c638aba2c5d
  2ff17fec_bf74_715c_d31e_b69b2fcd115c["newSession()"]
  2ff17fec_bf74_715c_d31e_b69b2fcd115c -->|calls| 542fec67_9434_e1a5_46f0_2a5cbe2252cc
  style 542fec67_9434_e1a5_46f0_2a5cbe2252cc fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-classes-quic/src/main/java/io/netty/handler/codec/quic/BoringSSLSessionCallback.java lines 70–84

    private static byte @Nullable [] toQuicheQuicSession(byte @Nullable [] sslSession, byte @Nullable [] peerParams) {
        if (sslSession != null && peerParams != null) {
            try (ByteArrayOutputStream bos = new ByteArrayOutputStream();
                 DataOutputStream dos = new DataOutputStream(bos)) {
                dos.writeLong(sslSession.length);
                dos.write(sslSession);
                dos.writeLong(peerParams.length);
                dos.write(peerParams);
                return bos.toByteArray();
            } catch (IOException e) {
                return null;
            }
        }
        return null;
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does toQuicheQuicSession() do?
toQuicheQuicSession() is a function in the netty codebase, defined in codec-classes-quic/src/main/java/io/netty/handler/codec/quic/BoringSSLSessionCallback.java.
Where is toQuicheQuicSession() defined?
toQuicheQuicSession() is defined in codec-classes-quic/src/main/java/io/netty/handler/codec/quic/BoringSSLSessionCallback.java at line 70.
What calls toQuicheQuicSession()?
toQuicheQuicSession() is called by 1 function(s): newSession.

Analyze Your Own Codebase

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

Try Supermodel Free