mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-04 20:57:36 +03:00
22 lines
741 B
Go
22 lines
741 B
Go
package ackhandler
|
|
|
|
import (
|
|
"github.com/lucas-clemente/quic-go/internal/congestion"
|
|
"github.com/lucas-clemente/quic-go/internal/protocol"
|
|
"github.com/lucas-clemente/quic-go/internal/utils"
|
|
"github.com/lucas-clemente/quic-go/qlog"
|
|
"github.com/lucas-clemente/quic-go/quictrace"
|
|
)
|
|
|
|
func NewAckHandler(
|
|
initialPacketNumber protocol.PacketNumber,
|
|
rttStats *congestion.RTTStats,
|
|
pers protocol.Perspective,
|
|
traceCallback func(quictrace.Event),
|
|
qlogger qlog.Tracer,
|
|
logger utils.Logger,
|
|
version protocol.VersionNumber,
|
|
) (SentPacketHandler, ReceivedPacketHandler) {
|
|
sph := newSentPacketHandler(initialPacketNumber, rttStats, pers, traceCallback, qlogger, logger)
|
|
return sph, newReceivedPacketHandler(sph, rttStats, logger, version)
|
|
}
|