]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - include/internal/quic_stream_map.h
QUIC APL: Implement backpressure on stream creation
[thirdparty/openssl.git] / include / internal / quic_stream_map.h
index 10b3cfa32c1a45c239791796ebcafb3c82224936..cc071dba4c7732ef9ca1893d62d9f3e2a9f5e082 100644 (file)
@@ -607,6 +607,17 @@ void ossl_quic_stream_map_update_state(QUIC_STREAM_MAP *qsm, QUIC_STREAM *s);
  */
 void ossl_quic_stream_map_set_rr_stepping(QUIC_STREAM_MAP *qsm, size_t stepping);
 
+/*
+ * Returns 1 if the stream ordinal given is allowed by the current stream count
+ * flow control limit, assuming a locally initiated stream of a type described
+ * by is_uni.
+ *
+ * Note that stream_ordinal is a stream ordinal, not a stream ID.
+ */
+int ossl_quic_stream_map_is_local_allowed_by_stream_limit(QUIC_STREAM_MAP *qsm,
+                                                          uint64_t stream_ordinal,
+                                                          int is_uni);
+
 /*
  * Stream Send Part
  * ================