@@ -165,8 +165,8 @@ const onEndpointServerSessionChannel = dc.channel('quic.session.created.server')
165
165
* @property {bigint|number } [handshakeTimeout] The handshake timeout
166
166
* @property {bigint|number } [maxStreamWindow] The maximum stream window
167
167
* @property {bigint|number } [maxWindow] The maximum window
168
- * @property {number } [rxDiagnosticLoss] The receive diagnostic loss (range 0.0-1.0)
169
- * @property {number } [txDiagnosticLoss] The transmit diagnostic loss (range 0.0-1.0)
168
+ * @property {number } [rxDiagnosticLoss] The receive diagnostic loss probability (range 0.0-1.0)
169
+ * @property {number } [txDiagnosticLoss] The transmit diagnostic loss probability (range 0.0-1.0)
170
170
* @property {number } [udpReceiveBufferSize] The UDP receive buffer size
171
171
* @property {number } [udpSendBufferSize] The UDP send buffer size
172
172
* @property {number } [udpTTL] The UDP TTL
@@ -395,6 +395,31 @@ const onEndpointServerSessionChannel = dc.channel('quic.session.created.server')
395
395
* @property {OnStreamErrorCallback } [onreset] The reset callback
396
396
* @property {OnHeadersCallback } [onheaders] The headers callback
397
397
* @property {OnTrailersCallback } [ontrailers] The trailers callback
398
+ * @property {SocketAddress } [address] The local address to bind to
399
+ * @property {bigint|number } [retryTokenExpiration] The retry token expiration
400
+ * @property {bigint|number } [tokenExpiration] The token expiration
401
+ * @property {bigint|number } [maxConnectionsPerHost] The maximum number of connections per host
402
+ * @property {bigint|number } [maxConnectionsTotal] The maximum number of total connections
403
+ * @property {bigint|number } [maxStatelessResetsPerHost] The maximum number of stateless resets per host
404
+ * @property {bigint|number } [addressLRUSize] The size of the address LRU cache
405
+ * @property {bigint|number } [maxRetries] The maximum number of retries
406
+ * @property {bigint|number } [maxPayloadSize] The maximum payload size
407
+ * @property {bigint|number } [unacknowledgedPacketThreshold] The unacknowledged packet threshold
408
+ * @property {bigint|number } [handshakeTimeout] The handshake timeout
409
+ * @property {bigint|number } [maxStreamWindow] The maximum stream window
410
+ * @property {bigint|number } [maxWindow] The maximum window
411
+ * @property {number } [rxDiagnosticLoss] The receive diagnostic loss probability (range 0.0-1.0)
412
+ * @property {number } [txDiagnosticLoss] The transmit diagnostic loss probability (range 0.0-1.0)
413
+ * @property {number } [udpReceiveBufferSize] The UDP receive buffer size
414
+ * @property {number } [udpSendBufferSize] The UDP send buffer size
415
+ * @property {number } [udpTTL] The UDP TTL
416
+ * @property {boolean } [noUdpPayloadSizeShaping] Disable UDP payload size shaping
417
+ * @property {boolean } [validateAddress] Validate the address
418
+ * @property {boolean } [disableActiveMigration] Disable active migration
419
+ * @property {boolean } [ipv6Only] Use IPv6 only
420
+ * @property {'reno'|'cubic'|'bbr'|number } [cc] The congestion control algorithm
421
+ * @property {ArrayBufferView } [resetTokenSecret] The reset token secret
422
+ * @property {ArrayBufferView } [tokenSecret] The token secret
398
423
*/
399
424
400
425
/**
@@ -1342,7 +1367,7 @@ class QuicEndpoint {
1342
1367
}
1343
1368
1344
1369
/**
1345
- * @param {EndpointOptions } options
1370
+ * @param {EndpointCallbackConfiguration } options
1346
1371
* @returns {EndpointOptions }
1347
1372
*/
1348
1373
#processEndpointOptions( options ) {
@@ -1421,9 +1446,8 @@ class QuicEndpoint {
1421
1446
1422
1447
/**
1423
1448
* @param {EndpointCallbackConfiguration } config
1424
- * @param {EndpointOptions } [options]
1425
1449
*/
1426
- constructor ( config = kEmptyObject , options = kEmptyObject ) {
1450
+ constructor ( config = kEmptyObject ) {
1427
1451
const {
1428
1452
onsession,
1429
1453
session,
@@ -1437,15 +1461,15 @@ class QuicEndpoint {
1437
1461
}
1438
1462
this . #sessionConfig = session ;
1439
1463
1440
- this . #handle = new Endpoint_ ( this . #processEndpointOptions( options ) ) ;
1464
+ this . #handle = new Endpoint_ ( this . #processEndpointOptions( config ) ) ;
1441
1465
this . #handle[ kOwner ] = this ;
1442
1466
this . #stats = new QuicEndpointStats ( kPrivateConstructor , this . #handle. stats ) ;
1443
1467
this . #state = new QuicEndpointState ( kPrivateConstructor , this . #handle. state ) ;
1444
1468
1445
1469
if ( onEndpointCreatedChannel . hasSubscribers ) {
1446
1470
onEndpointCreatedChannel . publish ( {
1447
1471
endpoint : this ,
1448
- options ,
1472
+ config ,
1449
1473
} ) ;
1450
1474
}
1451
1475
}
@@ -1618,7 +1642,6 @@ class QuicEndpoint {
1618
1642
throw new ERR_INVALID_ARG_VALUE ( 'options.preferredAddressPolicy' , policy ) ;
1619
1643
}
1620
1644
1621
-
1622
1645
/**
1623
1646
* @param {SessionOptions } options
1624
1647
*/
0 commit comments