expvar.go 740 B

12345678910111213141516171819
  1. package utp
  2. import "expvar"
  3. var (
  4. ackSkippedResends = expvar.NewInt("utpAckSkippedResends")
  5. // Inbound packets processed by a Conn.
  6. deliveriesProcessed = expvar.NewInt("utpDeliveriesProcessed")
  7. sentStatePackets = expvar.NewInt("utpSentStatePackets")
  8. acksReceivedAheadOfSyn = expvar.NewInt("utpAcksReceivedAheadOfSyn")
  9. unexpectedPacketsRead = expvar.NewInt("utpUnexpectedPacketsRead")
  10. // State packets that we managed not to send.
  11. unsentStatePackets = expvar.NewInt("utpUnsentStatePackets")
  12. unusedReads = expvar.NewInt("utpUnusedReads")
  13. unusedReadsDropped = expvar.NewInt("utpUnusedReadsDropped")
  14. largestReceivedUTPPacket int
  15. largestReceivedUTPPacketExpvar = expvar.NewInt("utpLargestReceivedPacket")
  16. )