Home / Function/ beginRead() — netty Function Reference

beginRead() — netty Function Reference

Architecture documentation for the beginRead() function in QuicheQuicStreamChannel.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  71da0969_c1b1_b745_dcbf_503b04d1d4fe["beginRead()"]
  77188bb7_e7ad_de01_3b54_5bc50b9e2df1["QuicStreamChannelUnsafe"]
  71da0969_c1b1_b745_dcbf_503b04d1d4fe -->|defined in| 77188bb7_e7ad_de01_3b54_5bc50b9e2df1
  08842539_3127_e4fc_3930_f7214f42f664["recv()"]
  71da0969_c1b1_b745_dcbf_503b04d1d4fe -->|calls| 08842539_3127_e4fc_3930_f7214f42f664
  style 71da0969_c1b1_b745_dcbf_503b04d1d4fe fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicheQuicStreamChannel.java lines 649–663

        @Override
        public void beginRead() {
            assert eventLoop().inEventLoop();
            readPending = true;
            if (readable) {
                unsafe().recv();

                // As the stream was readable, and we called recv() ourselves we also need to call
                // connectionSendAndFlush(). This is needed as recv() might consume data and so a window update
                // frame might be produced. If we miss to call connectionSendAndFlush() we might never send the update
                // to the remote peer and so the remote peer might never attempt to send more data.
                // See also https://docs.rs/quiche/latest/quiche/struct.Connection.html#method.send.
                parent().connectionSendAndFlush();
            }
        }

Domain

Subdomains

Calls

Frequently Asked Questions

What does beginRead() do?
beginRead() is a function in the netty codebase, defined in codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicheQuicStreamChannel.java.
Where is beginRead() defined?
beginRead() is defined in codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicheQuicStreamChannel.java at line 649.
What does beginRead() call?
beginRead() calls 1 function(s): recv.

Analyze Your Own Codebase

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

Try Supermodel Free