mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-05 21:27:35 +03:00
new: uquic
This commit is contained in:
parent
95f3eaaa66
commit
ea40752ca3
25 changed files with 1420 additions and 686 deletions
23
internal/ackhandler/u_ackhandler.go
Normal file
23
internal/ackhandler/u_ackhandler.go
Normal file
|
@ -0,0 +1,23 @@
|
|||
package ackhandler
|
||||
|
||||
import (
|
||||
"github.com/quic-go/quic-go/internal/protocol"
|
||||
"github.com/quic-go/quic-go/internal/utils"
|
||||
"github.com/quic-go/quic-go/logging"
|
||||
)
|
||||
|
||||
// [UQUIC]
|
||||
func NewUAckHandler(
|
||||
initialPacketNumber protocol.PacketNumber,
|
||||
initialMaxDatagramSize protocol.ByteCount,
|
||||
rttStats *utils.RTTStats,
|
||||
clientAddressValidated bool,
|
||||
pers protocol.Perspective,
|
||||
tracer logging.ConnectionTracer,
|
||||
logger utils.Logger,
|
||||
) (SentPacketHandler, ReceivedPacketHandler) {
|
||||
sph := newSentPacketHandler(initialPacketNumber, initialMaxDatagramSize, rttStats, clientAddressValidated, pers, tracer, logger)
|
||||
return &uSentPacketHandler{
|
||||
sentPacketHandler: sph,
|
||||
}, newReceivedPacketHandler(sph, rttStats, logger)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue