How can I distinguish between different streams #2590
Answered
by
nibanks
AvatarGanymede
asked this question in
Q&A
-
Suppose that I open 3 streams on the server side. Is it possible to distinguish between them on the client side without adding extra info in the payload? |
Beta Was this translation helpful? Give feedback.
Answered by
nibanks
Mar 30, 2022
Replies: 1 comment
-
Yes, you can query the ID of each stream via QUIC_UINT62 ID;
uint32_t IDLen = sizeof(ID);
MsQuic->GetParam(
StreamHandle,
QUIC_PARAM_STREAM_ID,
&IDLen,
&ID); It's also worth noting that you can only query a stream's ID after it has been started; meaning just calling |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
AvatarGanymede
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, you can query the ID of each stream via
QUIC_PARAM_STREAM_ID
.It's also worth noting that you can only query a stream's ID after it has been started; meaning just calling
StreamOpen
is not enough. When you receive a stream from the peer, it is already started.