Enables or disables receive callbacks on a stream.
typedef
_IRQL_requires_max_(DISPATCH_LEVEL)
QUIC_STATUS
(QUIC_API * QUIC_STREAM_RECEIVE_SET_ENABLED_FN)(
_In_ _Pre_defensive_ HQUIC Stream,
_In_ BOOLEAN IsEnabled
);
TODO
The function returns a QUIC_STATUS. The app may use QUIC_FAILED
or QUIC_SUCCEEDED
to determine if the function failed or succeeded.
This function always delegates to the worker queue, even if called from a quic worker thread. This matters if disabling receives, as there could be a receive in the queue before this call is processed, and that receive would still indicated to the app. To disable receives reliably, reject a receive by draining 0 bytes in the QUIC_STREAM_EVENT_RECEIVE
callback.
StreamOpen
StreamClose
StreamStart
StreamShutdown
StreamSend
StreamReceiveComplete