wip: implement InitialSpec type (1/n)

- TransportParameters are now set as a part of ClientHelloSpecs
- Removes transportparameters package and uses tls.TransportParameters
This commit is contained in:
Gaukas Wang 2023-07-30 20:01:07 -06:00
parent 9327068651
commit 20e2a487b8
No known key found for this signature in database
GPG key ID: 9E2F8986D76F8B5D
9 changed files with 173 additions and 497 deletions

View file

@ -12,7 +12,6 @@ import (
"github.com/quic-go/quic-go/internal/handshake"
"github.com/quic-go/quic-go/internal/protocol"
"github.com/quic-go/quic-go/logging"
"github.com/quic-go/quic-go/transportparameters"
)
// The StreamID is the ID of a QUIC stream.
@ -336,11 +335,10 @@ type Config struct {
Tracer func(context.Context, logging.Perspective, ConnectionID) logging.ConnectionTracer
// TransportParameters override other transport parameters set by the Config.
TransportParameters transportparameters.TransportParameters // [UQUIC]
SrcConnIDLength int // [UQUIC]
DestConnIDLength int // [UQUIC]
InitPacketNumber uint64 // [UQUIC]
InitPacketNumberLength protocol.PacketNumberLen // [UQUIC]
SrcConnIDLength int // [UQUIC]
DestConnIDLength int // [UQUIC]
InitPacketNumber uint64 // [UQUIC]
InitPacketNumberLength PacketNumberLen // [UQUIC]
}
type ClientHelloInfo struct {