Skip to content

How to read received data in the sample example on QUIC_STREAM_EVENT_RECEIVE event #4076

Answered by nibanks
chemsallioua asked this question in Q&A
Discussion options

You must be logged in to vote

You need to look at the QUIC_STREAM_EVENT* Event payload:

typedef struct QUIC_STREAM_EVENT {
    QUIC_STREAM_EVENT_TYPE Type;
...
        struct {
            /* in */    uint64_t AbsoluteOffset;
            /* inout */ uint64_t TotalBufferLength;
            _Field_size_(BufferCount)
            /* in */    const QUIC_BUFFER* Buffers;
            _Field_range_(0, UINT32_MAX)
            /* in */    uint32_t BufferCount;
            /* in */    QUIC_RECEIVE_FLAGS Flags;
        } RECEIVE;

You'll notice RECEIVE has a several different fields to use. Generally, Buffers and BufferCount will help you get to the actual data.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@chemsallioua
Comment options

Answer selected by chemsallioua
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested external Proposed by non-MSFT Area: API
2 participants