@fails-components/webtransport-transport-http3-quiche 1.6.0 → 1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CMakeLists.txt +2 -4
- package/package.json +1 -1
- package/src/http3wtstreamvisitor.h +23 -26
package/CMakeLists.txt
CHANGED
|
@@ -158,6 +158,8 @@ third_party/quiche/quiche/common/http/http_header_block.cc
|
|
|
158
158
|
third_party/quiche/quiche/common/http/http_header_block.h
|
|
159
159
|
third_party/quiche/quiche/common/http/http_header_storage.cc
|
|
160
160
|
third_party/quiche/quiche/common/http/http_header_storage.h
|
|
161
|
+
third_party/quiche/quiche/common/moq_varint.h
|
|
162
|
+
third_party/quiche/quiche/common/moq_varint.cc
|
|
161
163
|
third_party/quiche/quiche/common/platform/api/quiche_bug_tracker.h
|
|
162
164
|
third_party/quiche/quiche/common/platform/api/quiche_export.h
|
|
163
165
|
third_party/quiche/quiche/common/platform/api/quiche_flag_utils.h
|
|
@@ -758,10 +760,6 @@ third_party/quiche/quiche/quic/core/quic_stream_id_manager.cc
|
|
|
758
760
|
third_party/quiche/quiche/quic/core/quic_stream_id_manager.h
|
|
759
761
|
third_party/quiche/quiche/quic/core/quic_stream_priority.cc
|
|
760
762
|
third_party/quiche/quiche/quic/core/quic_stream_priority.h
|
|
761
|
-
third_party/quiche/quiche/quic/core/quic_stream_send_buffer_base.cc
|
|
762
|
-
third_party/quiche/quiche/quic/core/quic_stream_send_buffer_base.h
|
|
763
|
-
third_party/quiche/quiche/quic/core/quic_stream_send_buffer.cc
|
|
764
|
-
third_party/quiche/quiche/quic/core/quic_stream_send_buffer.h
|
|
765
763
|
third_party/quiche/quiche/quic/core/quic_stream_send_buffer_inlining.cc
|
|
766
764
|
third_party/quiche/quiche/quic/core/quic_stream_send_buffer_inlining.h
|
|
767
765
|
third_party/quiche/quiche/quic/core/quic_stream_sequencer.cc
|
package/package.json
CHANGED
|
@@ -37,7 +37,7 @@ namespace quic
|
|
|
37
37
|
{
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
~Http3WTStream(){/*printf("stream destruct %x\n", this);*/};
|
|
40
|
+
~Http3WTStream() { /*printf("stream destruct %x\n", this);*/ };
|
|
41
41
|
|
|
42
42
|
class Visitor : public WebTransportStreamVisitor
|
|
43
43
|
{
|
|
@@ -184,23 +184,20 @@ namespace quic
|
|
|
184
184
|
{
|
|
185
185
|
public:
|
|
186
186
|
StreamReadBuffer(Http3WTStreamJS *jsobj) : fin(false), jsobj_(jsobj),
|
|
187
|
-
|
|
187
|
+
buffer_(nullptr), buffersize_(0)
|
|
188
188
|
{
|
|
189
189
|
}
|
|
190
190
|
|
|
191
191
|
void getBuffer(size_t reqsize);
|
|
192
192
|
|
|
193
|
+
unsigned char *bufferData() { return buffer_; };
|
|
194
|
+
size_t bufferSize() { return buffersize_; };
|
|
193
195
|
|
|
194
|
-
|
|
195
|
-
unsigned char * bufferData() { return buffer_;};
|
|
196
|
-
size_t bufferSize() { return buffersize_;};
|
|
197
|
-
|
|
198
|
-
bool hasBuffer() {return buffer_ != nullptr;}
|
|
196
|
+
bool hasBuffer() { return buffer_ != nullptr; }
|
|
199
197
|
|
|
200
198
|
void commitBuffer(uint32_t readbytes, bool drained);
|
|
201
199
|
|
|
202
|
-
void setFin() { fin = true;}
|
|
203
|
-
|
|
200
|
+
void setFin() { fin = true; }
|
|
204
201
|
|
|
205
202
|
protected:
|
|
206
203
|
Napi::ObjectReference bufferObj;
|
|
@@ -212,8 +209,7 @@ namespace quic
|
|
|
212
209
|
Http3WTStreamJS *jsobj_; // unowned
|
|
213
210
|
};
|
|
214
211
|
|
|
215
|
-
|
|
216
|
-
|
|
212
|
+
public:
|
|
217
213
|
Http3WTStreamJS(const Napi::CallbackInfo &info) : Napi::ObjectWrap<Http3WTStreamJS>(info)
|
|
218
214
|
{
|
|
219
215
|
}
|
|
@@ -310,21 +306,22 @@ namespace quic
|
|
|
310
306
|
{
|
|
311
307
|
Napi::Function tplwtsv =
|
|
312
308
|
DefineClass(env, "Http3WTStreamVisitor",
|
|
313
|
-
{
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
309
|
+
{
|
|
310
|
+
InstanceMethod<&Http3WTStreamJS::writeChunk>("writeChunk",
|
|
311
|
+
static_cast<napi_property_attributes>(napi_writable | napi_configurable)),
|
|
312
|
+
InstanceMethod<&Http3WTStreamJS::resetStream>("resetStream",
|
|
313
|
+
static_cast<napi_property_attributes>(napi_writable | napi_configurable)),
|
|
314
|
+
InstanceMethod<&Http3WTStreamJS::stopSending>("stopSending", static_cast<napi_property_attributes>(napi_writable | napi_configurable)),
|
|
315
|
+
InstanceMethod<&Http3WTStreamJS::streamFinal>("streamFinal", static_cast<napi_property_attributes>(napi_writable | napi_configurable)),
|
|
316
|
+
InstanceMethod<&Http3WTStreamJS::startReading>("startReading",
|
|
317
|
+
static_cast<napi_property_attributes>(napi_writable | napi_configurable)),
|
|
318
|
+
InstanceMethod<&Http3WTStreamJS::drainReads>("drainReads",
|
|
319
|
+
static_cast<napi_property_attributes>(napi_writable | napi_configurable)),
|
|
320
|
+
InstanceMethod<&Http3WTStreamJS::stopReading>("stopReading",
|
|
321
|
+
static_cast<napi_property_attributes>(napi_writable | napi_configurable)),
|
|
322
|
+
InstanceMethod<&Http3WTStreamJS::updateSendOrderAndGroup>("updateSendOrderAndGroup",
|
|
323
|
+
static_cast<napi_property_attributes>(napi_writable | napi_configurable)),
|
|
324
|
+
});
|
|
328
325
|
constr->stream = Napi::Persistent(tplwtsv);
|
|
329
326
|
exports.Set("Http3WTStreamVisitor", tplwtsv);
|
|
330
327
|
}
|