Quic.NET icon indicating copy to clipboard operation
Quic.NET copied to clipboard

QuicClient.CreateStream is hardcoded to 1.

Open angedelamort opened this issue 6 years ago • 1 comments

I've changed my local version to:

public QuicStreamContext CreateStream(ulong streamId = 1, StreamType streamType = StreamType.ClientBidirectional);

in order to keep the compatibility.

angedelamort avatar Jan 05 '19 04:01 angedelamort

Good catch. We can use a NumberSpace class instance here, it's part of QuicNet.Infrastructure. We can substitute the streamId optional parameter with a private NumberSpace in the QuicClient, and leave the streamType in place, so a client can choose whether is Uni/Bidirectional.

Still, let's merge that one in,

Thanks!

Vect0rZ avatar Jan 05 '19 07:01 Vect0rZ