mirror of
https://github.com/cloudflare/cloudflared.git
synced 2025-05-14 23:06:35 +00:00

- Added a QUIC server to accept streams - Unit test for this server also tests ALPN - Temporary echo capability for HTTP ConnectionType
15 lines
344 B
Go
15 lines
344 B
Go
package wire
|
|
|
|
import "github.com/lucas-clemente/quic-go/internal/protocol"
|
|
|
|
// AckRange is an ACK range
|
|
type AckRange struct {
|
|
Smallest protocol.PacketNumber
|
|
Largest protocol.PacketNumber
|
|
}
|
|
|
|
// Len returns the number of packets contained in this ACK range
|
|
func (r AckRange) Len() protocol.PacketNumber {
|
|
return r.Largest - r.Smallest + 1
|
|
}
|