Source File
ack_eliciting.go
Belonging Package
github.com/quic-go/quic-go/internal/ackhandler
package ackhandlerimport// IsFrameTypeAckEliciting returns true if the frame is ack-eliciting.func ( wire.FrameType) bool {//nolint:exhaustive // The default case catches the rest.switch {case wire.FrameTypeAck, wire.FrameTypeAckECN:return falsecase wire.FrameTypeConnectionClose, wire.FrameTypeApplicationClose:return falsedefault:return true}}// IsFrameAckEliciting returns true if the frame is ack-eliciting.func ( wire.Frame) bool {, := .(*wire.AckFrame), := .(*wire.ConnectionCloseFrame)return ! && !}// HasAckElicitingFrames returns true if at least one frame is ack-eliciting.func ( []Frame) bool {for , := range {if IsFrameAckEliciting(.Frame) {return true}}return false}
![]() |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |