YTSFlix_Go/vendor/github.com/anacrolix/utp/expvar.go

20 lines
740 B
Go
Raw Normal View History

2018-11-04 14:58:15 +00:00
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")
)