Source File
send_mode.go
Belonging Package
github.com/quic-go/quic-go/internal/ackhandler
package ackhandlerimport// The SendMode says what kind of packets can be sent.type SendMode uint8const (// SendNone means that no packets should be sentSendNone SendMode = iota// SendAck means an ACK-only packet should be sentSendAck// SendPTOInitial means that an Initial probe packet should be sentSendPTOInitial// SendPTOHandshake means that a Handshake probe packet should be sentSendPTOHandshake// SendPTOAppData means that an Application data probe packet should be sentSendPTOAppData// SendPacingLimited means that the pacer doesn't allow sending of a packet right now,// but will do in a little while.// The timestamp when sending is allowed again can be obtained via the SentPacketHandler.TimeUntilSend.SendPacingLimited// SendAny means that any packet should be sentSendAny)func ( SendMode) () string {switch {case SendNone:return "none"case SendAck:return "ack"case SendPTOInitial:return "pto (Initial)"case SendPTOHandshake:return "pto (Handshake)"case SendPTOAppData:return "pto (Application Data)"case SendAny:return "any"case SendPacingLimited:return "pacing limited"default:return fmt.Sprintf("invalid send mode: %d", )}}
![]() |
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. |