YTSFlix_Go/vendor/github.com/anacrolix/utp/expvar.go
2018-11-04 15:58:15 +01:00

20 lines
740 B
Go

package utp
import "expvar"
var (
ackSkippedResends = expvar.NewInt("utpAckSkippedResends")
// Inbound packets processed by a Conn.
deliveriesProcessed = expvar.NewInt("utpDeliveriesProcessed")
sentStatePackets = expvar.NewInt("utpSentStatePackets")
acksReceivedAheadOfSyn = expvar.NewInt("utpAcksReceivedAheadOfSyn")
unexpectedPacketsRead = expvar.NewInt("utpUnexpectedPacketsRead")
// State packets that we managed not to send.
unsentStatePackets = expvar.NewInt("utpUnsentStatePackets")
unusedReads = expvar.NewInt("utpUnusedReads")
unusedReadsDropped = expvar.NewInt("utpUnusedReadsDropped")
largestReceivedUTPPacket int
largestReceivedUTPPacketExpvar = expvar.NewInt("utpLargestReceivedPacket")
)